Commit 577af05e authored by Andreas Jung's avatar Andreas Jung

fixed outdated transaction.commit(1) call in ZODBMountPoint.SimpleTrailblazer

parent 4023c527
...@@ -198,6 +198,9 @@ Zope Changes ...@@ -198,6 +198,9 @@ Zope Changes
Bugs Fixed Bugs Fixed
- fixed outdated transaction.commit(1) call in
ZODBMountPoint.SimpleTrailblazer
- Fixed against-the-rules zope.conf option 'fast_listen' to read - Fixed against-the-rules zope.conf option 'fast_listen' to read
'fast-listen' (dash, not underscore). 'fast-listen' (dash, not underscore).
......
...@@ -60,7 +60,7 @@ class SimpleTrailblazer: ...@@ -60,7 +60,7 @@ class SimpleTrailblazer:
o = context.restrictedTraverse(id) o = context.restrictedTraverse(id)
# Commit a subtransaction to assign the new object to # Commit a subtransaction to assign the new object to
# the correct database. # the correct database.
transaction.commit(1) transaction.savepoint(optimistic=True)
return o return o
def traverseOrConstruct(self, path, omit_final=0): def traverseOrConstruct(self, path, omit_final=0):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment