Commit 8d10c86e authored by Nicolas Dumazet's avatar Nicolas Dumazet

this list is in fact a tuple


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42817 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f594e1e5
...@@ -222,14 +222,14 @@ class PortalTypeMetaClass(GhostBaseMetaClass): ...@@ -222,14 +222,14 @@ class PortalTypeMetaClass(GhostBaseMetaClass):
LOG("ERP5Type.Dynamic", WARNING, LOG("ERP5Type.Dynamic", WARNING,
"Could not access Portal Type Object for type %r" "Could not access Portal Type Object for type %r"
% portal_type, error=sys.exc_info()) % portal_type, error=sys.exc_info())
base_list = (ERP5BaseBroken, ) base_tuple = (ERP5BaseBroken, )
attribute_dict = {} attribute_dict = {}
interface_list = [] interface_list = []
else: else:
base_list, interface_list, attribute_dict = class_definition base_tuple, interface_list, attribute_dict = class_definition
klass.__isghost__ = False klass.__isghost__ = False
klass.__bases__ = base_list klass.__bases__ = base_tuple
for key, value in attribute_dict.iteritems(): for key, value in attribute_dict.iteritems():
setattr(klass, key, value) setattr(klass, key, value)
......
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