Commit dada27d7 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

implement _getDivergenceTesterList() and _getQuantityTesterList().


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30761 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f496f50a
...@@ -242,7 +242,12 @@ class RuleMixin: ...@@ -242,7 +242,12 @@ class RuleMixin:
exclude_quantity -- if set to true, do not consider exclude_quantity -- if set to true, do not consider
quantity divergence testers quantity divergence testers
""" """
raise NotImplementedError tester_list = self.objectValues(
portal_type=self.getPortalDivergenceTesterTypeList())
if exclude_quantity:
return [x for x in tester_list if x.getTestedProperty() != 'quantity']
else:
return tester_list
def _getMatchingTesterList(self): def _getMatchingTesterList(self):
""" """
...@@ -256,7 +261,9 @@ class RuleMixin: ...@@ -256,7 +261,9 @@ class RuleMixin:
""" """
Return the applicable quantity divergence testers. Return the applicable quantity divergence testers.
""" """
raise NotImplementedError tester_list = self.objectValues(
portal_type=self.getPortalDivergenceTesterTypeList())
return [x for x in tester_list if x.getTestedProperty() == 'quantity']
def _newProfitAndLossMovement(self, prevision_movement): def _newProfitAndLossMovement(self, prevision_movement):
""" """
...@@ -266,6 +273,7 @@ class RuleMixin: ...@@ -266,6 +273,7 @@ class RuleMixin:
prevision_movement -- a simulation movement prevision_movement -- a simulation movement
""" """
raise NotImplementedError
def _extendMovementCollectionDiff(self, movement_collection_diff, def _extendMovementCollectionDiff(self, movement_collection_diff,
prevision_movement, decision_movement_list): prevision_movement, decision_movement_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