Commit 86bb14dc authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

implement this method in legacy Rule class just same as new rule mixin.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36698 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7ffebace
......@@ -531,4 +531,20 @@ class Rule(Predicate, XMLObject):
return property_dict
def _getDivergenceTesterList(self, exclude_quantity=True):
"""
Return the applicable divergence testers which must
be used to test movement divergence. (ie. not all
divergence testers of the Rule)
exclude_quantity -- if set to true, do not consider
quantity divergence testers
"""
tester_list = self.objectValues(
portal_type=self.getPortalDivergenceTesterTypeList())
if exclude_quantity:
# XXX hardcoded
return filter(lambda x:x.getPortalType() != 'Quantity Divergence Tester',
tester_list)
else:
return tester_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