[Erp5-report] r14049 - /erp5/trunk/products/ERP5Type/patches/Transaction.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Apr 11 17:27:53 CEST 2007


Author: vincent
Date: Wed Apr 11 17:27:51 2007
New Revision: 14049

URL: http://svn.erp5.org?rev=14049&view=rev
Log:
Restore object append stripped in previous commit, because it's actually needed when one commits a transaction which follows one (or multiple) subtransaction commits.

Modified:
    erp5/trunk/products/ERP5Type/patches/Transaction.py

Modified: erp5/trunk/products/ERP5Type/patches/Transaction.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/Transaction.py?rev=14049&r1=14048&r2=14049&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/Transaction.py (original)
+++ erp5/trunk/products/ERP5Type/patches/Transaction.py Wed Apr 11 17:27:51 2007
@@ -83,9 +83,13 @@
                 # Do prepare until number of jars is stable - this could
                 # create infinite loop
                 jars_len = -1
+                objects_len = len(self._objects)
                 while len(jars) != jars_len:
                     jars_len = len(jars)
                     self._commit_prepare(jars, subjars, subtransaction)
+                    if len(self._objects) != objects_len:
+                      objects.extend(self._objects[objects_len:])
+                      objects_len = len(self._objects)
                     jars = self._get_jars(objects, subtransaction)
                 # If not subtransaction, then jars will be modified.
                 self._commit_begin(jars, subjars, subtransaction)




More information about the Erp5-report mailing list