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

Andreas Jung andreas at andreas-jung.com
Wed Jun 25 05:54:26 EDT 2008


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

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

-=-
Modified: Zope/branches/2.11/doc/CHANGES.txt
===================================================================
--- Zope/branches/2.11/doc/CHANGES.txt	2008-06-25 09:50:28 UTC (rev 87747)
+++ Zope/branches/2.11/doc/CHANGES.txt	2008-06-25 09:54:25 UTC (rev 87748)
@@ -11,6 +11,9 @@
       - Launchpad #239636:  Ensure that HEAD requests lock an empty body
         for NotFound errors.
 
+      - fixed outdated transaction.commit(1) call in 
+        ZODBMountPoint.SimpleTrailblazer
+
   Zope 2.11.0 (2008/06/15)
 
     Restructuring

Modified: Zope/branches/2.11/lib/python/Products/ZODBMountPoint/MountedObject.py
===================================================================
--- Zope/branches/2.11/lib/python/Products/ZODBMountPoint/MountedObject.py	2008-06-25 09:50:28 UTC (rev 87747)
+++ Zope/branches/2.11/lib/python/Products/ZODBMountPoint/MountedObject.py	2008-06-25 09:54:25 UTC (rev 87748)
@@ -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