Commit 28f54de4 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

make the hash key sorter.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32258 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d7bbd703
......@@ -97,7 +97,7 @@ class CategoryMembershipDivergenceTester(Predicate, DivergenceTesterMixin):
value = movement.getRecordedProperty(tested_property)
else:
value = movement.getPropertyList(tested_property)
return '%s/%s/%r' % (self.getPortalType(), tested_property, value)
return '%s/%r' % (tested_property, value)
def getUpdatablePropertyDict(self, prevision_movement, decision_movement):
"""
......
......@@ -106,7 +106,7 @@ class VariationDivergenceTester(Predicate, DivergenceTesterMixin):
value_list.append(movement.getRecordedProperty(tested_property))
else:
value_list.append(movement.getProperty(tested_property))
return '%s/%r' % (self.getPortalType(), value_list)
return 'variation/%r' % (value_list)
def getUpdatablePropertyDict(self, prevision_movement, decision_movement):
"""
......
......@@ -105,7 +105,7 @@ class DivergenceTesterMixin:
value = movement.getRecordedProperty(tested_property)
else:
value = movement.getProperty(tested_property)
return '%s/%s/%r' % (self.getPortalType(), tested_property, value)
return '%s/%r' % (tested_property, value)
def compare(self, prevision_movement, decision_movement):
"""
......
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