[Erp5-report] r33805 nicolas - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Mar 17 16:03:36 CET 2010


Author: nicolas
Date: Wed Mar 17 16:03:34 2010
New Revision: 33805

URL: http://svn.erp5.org?rev=33805&view=rev
Log:
same fix as 33799

Modified:
    erp5/trunk/products/ERP5/Document/BusinessTemplate.py

Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=33805&r1=33804&r2=33805&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Wed Mar 17 16:03:34 2010
@@ -2045,10 +2045,10 @@
       new_key_list = self._objects.keys()
       new_dict = PersistentMapping()
       # fix key if necessary in installed bt for diff
-      for key in installed_item._objects.keys():
+      for key, value in installed_item._objects.iteritems():
         if self.class_property not in key:
           key = '%s/%s' % (self.class_property, key)
-        new_dict[key] = installed_item._objects[key]
+        new_dict[key] = value
       if new_dict:
         installed_item._objects = new_dict
       for path in new_key_list:




More information about the Erp5-report mailing list