[Zope-Checkins] SVN: Zope/trunk/ fixed outdated
transaction.commit(1) call in ZODBMountPoint.SimpleTrailblazer
Andreas Jung
andreas at andreas-jung.com
Wed Jun 25 05:50:28 EDT 2008
Log message for revision 87747:
fixed outdated transaction.commit(1) call in ZODBMountPoint.SimpleTrailblazer
Changed:
U Zope/trunk/doc/CHANGES.txt
U Zope/trunk/lib/python/Products/ZODBMountPoint/MountedObject.py
-=-
Modified: Zope/trunk/doc/CHANGES.txt
===================================================================
--- Zope/trunk/doc/CHANGES.txt 2008-06-25 09:17:50 UTC (rev 87746)
+++ Zope/trunk/doc/CHANGES.txt 2008-06-25 09:50:28 UTC (rev 87747)
@@ -198,6 +198,9 @@
Bugs Fixed
+ - fixed outdated transaction.commit(1) call in
+ ZODBMountPoint.SimpleTrailblazer
+
- Fixed against-the-rules zope.conf option 'fast_listen' to read
'fast-listen' (dash, not underscore).
Modified: Zope/trunk/lib/python/Products/ZODBMountPoint/MountedObject.py
===================================================================
--- Zope/trunk/lib/python/Products/ZODBMountPoint/MountedObject.py 2008-06-25 09:17:50 UTC (rev 87746)
+++ Zope/trunk/lib/python/Products/ZODBMountPoint/MountedObject.py 2008-06-25 09:50:28 UTC (rev 87747)
@@ -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