Commit 0c1f7694 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Small optimization.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38154 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 49954b71
......@@ -140,10 +140,12 @@ class Rule(Predicate, XMLObject):
applied_rule._delObject(movement_id)
# update existing and clear recorded properties
for movement, property_dict in modify_dict.items():
applied_rule[movement].edit(**property_dict)
for movement_id, property_dict in modify_dict.iteritems():
movement = applied_rule[movement_id]
movement.edit(**property_dict)
clearRecordedProperty = movement.clearRecordedProperty
for property_id in property_dict.iterkeys():
applied_rule[movement].clearRecordedProperty(property_id)
clearRecordedProperty(property_id)
# add new ones
for movement_dict in add_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