Commit bff2ac23 authored by Nicolas Dumazet's avatar Nicolas Dumazet

make sure that ghost portal type classes have a correct portal_type attribute


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42364 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bcfb6c43
...@@ -227,4 +227,6 @@ class PortalTypeMetaClass(GhostBaseMetaClass): ...@@ -227,4 +227,6 @@ class PortalTypeMetaClass(GhostBaseMetaClass):
ERP5Base.aq_method_lock.release() ERP5Base.aq_method_lock.release()
def generateLazyPortalTypeClass(portal_type_name): def generateLazyPortalTypeClass(portal_type_name):
return PortalTypeMetaClass(portal_type_name, (InitGhostBase,), {}) return PortalTypeMetaClass(portal_type_name,
(InitGhostBase,),
dict(portal_type=portal_type_name))
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