Commit 149ffb70 authored by Romain Courteaud's avatar Romain Courteaud

Follow CategoryMembershipArityConstraint API

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43277 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9e7415bc
......@@ -47,9 +47,7 @@ class CategoryAcquiredMembershipArityConstraint(CategoryMembershipArityConstrain
},
"""
def _calculateArity(self, obj):
base_category = self.constraint_definition['base_category']
portal_type = self.constraint_definition['portal_type']
return len(obj.getAcquiredCategoryMembershipList(base_category,
portal_type=portal_type))
def _calculateArity(self, obj, base_category_list, portal_type_list):
return len(obj.getAcquiredCategoryMembershipList(base_category_list,
portal_type=portal_type_list))
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