Commit 984f4616 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Make AttributeError of Portal Type class readable.

parent d0977b8d
......@@ -231,7 +231,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
cls.loadClass()
return getattr(cls, name)
raise AttributeError
raise AttributeError("'%r' has no attribute '%s'" % (cls, name))
def generatePortalTypeAccessors(cls, site, portal_type_category_list):
category_tool = getattr(site, 'portal_categories', None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment