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