Commit 889d73b9 authored by Sebastien Robin's avatar Sebastien Robin Committed by Georgios Dagkakis

ERP5Type: avoid __Broken_newargs__ attribute error with ERP5 broken objects

parent 5abbc5a7
......@@ -25,6 +25,10 @@ class ERP5BaseBroken(Broken, ERP5Base, PersistentBroken):
# PersistentBroken can't be reused directly
# because its « layout differs from 'GhostPortalType' »
# This prevents serialize (ZODB) from reloading the class during commit
# (which would look for __Broken_newargs__ which is not present)
__getnewargs__ = None
def __metaclass__(name, base, d):
d = dict(PersistentBroken.__dict__, **d)
for x in '__dict__', '__metaclass__', '__weakref__':
......
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