[Erp5-report] r33799 nicolas - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Mar 17 15:16:18 CET 2010
Author: nicolas
Date: Wed Mar 17 15:16:16 2010
New Revision: 33799
URL: http://svn.erp5.org?rev=33799&view=rev
Log:
Do not try to access value inside dictionary with modified key.
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=33799&r1=33798&r2=33799&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Wed Mar 17 15:16:16 2010
@@ -1940,10 +1940,10 @@
new_key_list = self._objects.keys()
new_dict = PersistentMapping()
# Fix key from installed bt if necessary
- for key in installed_item._objects:
+ for key, value in installed_item._objects.iteritems():
if not 'portal_type_workflow_chain/' in key:
key = 'portal_type_workflow_chain/%s' % (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