[Zope-Checkins] SVN: Zope/branches/2.10/ fixed outdated transaction.commit(1) call in ZODBMountPoint.SimpleTrailblazer

Andreas Jung andreas at andreas-jung.com
Wed Jun 25 05:55:23 EDT 2008


Log message for revision 87749:
  fixed outdated transaction.commit(1) call in ZODBMountPoint.SimpleTrailblazer
  

Changed:
  U   Zope/branches/2.10/doc/CHANGES.txt
  U   Zope/branches/2.10/lib/python/Products/ZODBMountPoint/MountedObject.py

-=-
Modified: Zope/branches/2.10/doc/CHANGES.txt
===================================================================
--- Zope/branches/2.10/doc/CHANGES.txt	2008-06-25 09:54:25 UTC (rev 87748)
+++ Zope/branches/2.10/doc/CHANGES.txt	2008-06-25 09:55:22 UTC (rev 87749)
@@ -8,6 +8,9 @@
 
     Bugs fixed
 
+      - fixed outdated transaction.commit(1) call in 
+        ZODBMountPoint.SimpleTrailblazer
+
       - Launchpad #239636:  Ensure that HEAD requests lock an empty body
         for NotFound errors.
 

Modified: Zope/branches/2.10/lib/python/Products/ZODBMountPoint/MountedObject.py
===================================================================
--- Zope/branches/2.10/lib/python/Products/ZODBMountPoint/MountedObject.py	2008-06-25 09:54:25 UTC (rev 87748)
+++ Zope/branches/2.10/lib/python/Products/ZODBMountPoint/MountedObject.py	2008-06-25 09:55:22 UTC (rev 87749)
@@ -60,7 +60,7 @@
         o = context.restrictedTraverse(id)
         # Commit a subtransaction to assign the new object to
         # the correct database.
-        transaction.commit(1)
+        transaction.savepoint(optimistic=True)
         return o
 
     def traverseOrConstruct(self, path, omit_final=0):



More information about the Zope-Checkins mailing list