[Zodb-checkins]
SVN: ZODB/branches/anguenot-after_commit_hooks/src/transaction/_transaction.py
Style
Julien Anguenot
ja at nuxeo.com
Wed Dec 21 09:26:45 EST 2005
Log message for revision 40952:
Style
Changed:
U ZODB/branches/anguenot-after_commit_hooks/src/transaction/_transaction.py
-=-
Modified: ZODB/branches/anguenot-after_commit_hooks/src/transaction/_transaction.py
===================================================================
--- ZODB/branches/anguenot-after_commit_hooks/src/transaction/_transaction.py 2005-12-21 12:29:35 UTC (rev 40951)
+++ ZODB/branches/anguenot-after_commit_hooks/src/transaction/_transaction.py 2005-12-21 14:26:44 UTC (rev 40952)
@@ -463,9 +463,8 @@
for hook, args, kws in self._after_commit:
# The first argument passed to the hook is a Boolean value,
# true if the commit succeeded, or false if the commit aborted.
- args = (status,) + args
try:
- hook(*args, **kws)
+ hook(status, *args, **kws)
except:
# We need to catch the exceptions if we want all hooks
# to be called
@@ -476,7 +475,7 @@
for rm in self._resources:
try:
rm.abort(self)
- except Exception:
+ except:
# XXX should we take further actions here ?
self.log.error("Error in abort() on manager %s",
rm, exc_info=sys.exc_info())
More information about the Zodb-checkins
mailing list