Commit 627de4ef authored by Julien Muchembled's avatar Julien Muchembled

Fix migration _property_domain_dict attribute on portal types

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29564 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 41cf6364
...@@ -153,11 +153,11 @@ class OldTypesTool(OFSFolder): ...@@ -153,11 +153,11 @@ class OldTypesTool(OFSFolder):
elif k == '_roles': elif k == '_roles':
for role in v: for role in v:
new_type._importRole(role.__getstate__()) new_type._importRole(role.__getstate__())
elif k == '_property_domain_dict':
v = dict((k, t.__class__(property_name=t.property_name,
domain_name=t.property_name))
for k, t in v.iteritems())
else: else:
if k == '_property_domain_dict':
v = dict((k, t.__class__(property_name=t.property_name,
domain_name=t.property_name))
for k, t in v.iteritems())
setattr(new_type, k, v) setattr(new_type, k, v)
def _migrateTypesTool(self, parent): def _migrateTypesTool(self, parent):
......
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