Commit c7bd4c19 authored by Romain Courteaud's avatar Romain Courteaud

Cast tuple to a string, in order to use it in the mapping.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20963 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9579799c
...@@ -95,7 +95,7 @@ class CategoryMembershipArity(Constraint): ...@@ -95,7 +95,7 @@ class CategoryMembershipArity(Constraint):
if not (max_arity is None and (min_arity <= arity) if not (max_arity is None and (min_arity <= arity)
or (min_arity <= arity <= max_arity)): or (min_arity <= arity <= max_arity)):
mapping = dict(base_category=base_category, mapping = dict(base_category=base_category,
portal_type=portal_type, portal_type=str(portal_type),
current_arity=arity, current_arity=arity,
min_arity=min_arity, min_arity=min_arity,
max_arity=max_arity,) max_arity=max_arity,)
......
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