Commit d907b205 authored by Julien Muchembled's avatar Julien Muchembled

Fix migration with category membership arity constraint defining custom messages

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43497 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d9273c91
...@@ -132,7 +132,8 @@ class CategoryMembershipArityConstraint(ConstraintMixin): ...@@ -132,7 +132,8 @@ class CategoryMembershipArityConstraint(ConstraintMixin):
def _convertFromFilesystemDefinition(min_arity, def _convertFromFilesystemDefinition(min_arity,
portal_type=(), portal_type=(),
max_arity=None, max_arity=None,
base_category=()): base_category=(),
**zodb_property_dict):
""" """
@see ERP5Type.mixin.constraint.ConstraintMixin._convertFromFilesystemDefinition @see ERP5Type.mixin.constraint.ConstraintMixin._convertFromFilesystemDefinition
...@@ -150,7 +151,7 @@ class CategoryMembershipArityConstraint(ConstraintMixin): ...@@ -150,7 +151,7 @@ class CategoryMembershipArityConstraint(ConstraintMixin):
constraint_portal_type_str = isinstance(portal_type, Expression) and \ constraint_portal_type_str = isinstance(portal_type, Expression) and \
portal_type.text or 'python: ' + repr(portal_type) portal_type.text or 'python: ' + repr(portal_type)
zodb_property_dict = dict( zodb_property_dict.update(
min_arity=int(min_arity), min_arity=int(min_arity),
constraint_portal_type=constraint_portal_type_str, constraint_portal_type=constraint_portal_type_str,
constraint_base_category_list=base_category) constraint_base_category_list=base_category)
......
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