Commit 948380e8 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add _getUpdatingTesterList().


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32180 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 848ec7e7
......@@ -196,6 +196,22 @@ class RuleMixin:
return filter(lambda x:x.isMatchingProvider(), self.objectValues(
portal_type=self.getPortalDivergenceTesterTypeList()))
def _getUpdatingTesterList(self, exclude_quantity=True):
"""
Return the applicable divergence testers which must be used to
update movements. (ie. not all divergence testers of the Rule)
exclude_quantity -- if set to true, do not consider
quantity divergence testers
"""
if exclude_quantity:
return filter(lambda x:x.isUpdatingProvider() and \
'quantity' not in x.getTestedPropertyList(), self.objectValues(
portal_type=self.getPortalDivergenceTesterTypeList()))
else:
return filter(lambda x:x.isUpdatingProvider(), self.objectValues(
portal_type=self.getPortalDivergenceTesterTypeList()))
def _getQuantityTesterList(self):
"""
Return the applicable quantity divergence testers.
......
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