Commit fe62925d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

now getRecordedPropertyValue() will return a single value or multiple values appropriately.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30903 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 81de1133
......@@ -68,8 +68,6 @@ class CategoryMembershipDivergenceTester(Predicate, DivergenceTesterMixin):
decision_value = decision_movement.getPropertyList(tested_property)
if prevision_movement.isPropertyRecorded(tested_property):
prevision_value = prevision_movement.getRecordedProperty(tested_property)
if not isinstance(prevision_value, (list, tuple)):
prevision_value = [prevision_value]
else:
prevision_value = prevision_movement.getPropertyList(tested_property)
......
......@@ -72,8 +72,6 @@ class FloatDivergenceTester(Predicate, DivergenceTesterMixin):
decision_value *= prevision_movement.getDeliveryRatio()
if prevision_movement.isPropertyRecorded(tested_property):
prevision_value = prevision_movement.getRecordedProperty(tested_property)
if isinstance(prevision_value, (list, tuple)):
prevision_value = prevision_value[0]
else:
prevision_value = prevision_movement.getProperty(tested_property)
......
......@@ -71,8 +71,6 @@ class StringDivergenceTester(Predicate, DivergenceTesterMixin):
decision_value = decision_movement.getProperty(tested_property)
if prevision_movement.isPropertyRecorded(tested_property):
prevision_value = prevision_movement.getRecordedProperty(tested_property)
if isinstance(prevision_value, (list, tuple)):
prevision_value = prevision_value[0]
else:
prevision_value = prevision_movement.getProperty(tested_property)
......
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