Commit cd4069b1 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

lazy_class.py: clean the code.

parent 72399877
......@@ -242,14 +242,12 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
'__doc__',
'__setstate__',
'workflow_method_registry',
'erp5workflow_method_registry',
'__isghost__',
'portal_type'):
delattr(cls, attr)
# generate a ghostbase that derives from all previous bases
ghostbase = GhostBaseMetaClass('GhostBase', cls.__bases__, {})
cls.workflow_method_registry.clear()
#cls.erp5workflow_method_registry.clear()
cls.__bases__ = (ghostbase,)
cls.__isghost__ = True
cls.resetAcquisition()
......
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