Now that we fixed unit-test conditions, let the domain tool figure out the categories again

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45136 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b06da57a
......@@ -98,15 +98,6 @@ class RuleTool(BaseTool):
"""
domain_tool = getToolByName(self.getPortalObject(), "portal_domains")
if tested_base_category_list is None:
# get all base categories currently stored in the movement
#
# XXX isn't there a method for this already?
# movement.getBaseCategoryList() returns ALL possible
# categories, not only those that are set on the object
tested_base_category_list = [category.split('/', 1)[0]
for category in movement.categories]
rule_list = domain_tool.searchPredicateList(context=movement,
tested_base_category_list=tested_base_category_list,
portal_type=self.getPortalRuleTypeList(),
......
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