[Erp5-report] r38154 yo - /erp5/trunk/products/ERP5Legacy/Document/Rule.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Sep 6 10:45:28 CEST 2010
Author: yo
Date: Mon Sep 6 10:45:25 2010
New Revision: 38154
URL: http://svn.erp5.org?rev=38154&view=rev
Log:
Small optimization.
Modified:
erp5/trunk/products/ERP5Legacy/Document/Rule.py
Modified: erp5/trunk/products/ERP5Legacy/Document/Rule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Legacy/Document/Rule.py?rev=38154&r1=38153&r2=38154&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Legacy/Document/Rule.py [utf8] (original)
+++ erp5/trunk/products/ERP5Legacy/Document/Rule.py [utf8] Mon Sep 6 10:45:25 2010
@@ -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:
More information about the Erp5-report
mailing list