[Zodb-checkins]
SVN: ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/_transaction.py
Simplification
Julien Anguenot
ja at nuxeo.com
Mon Aug 8 17:36:32 EDT 2005
Log message for revision 37799:
Simplification
Changed:
U ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/_transaction.py
-=-
Modified: ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/_transaction.py
===================================================================
--- ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/_transaction.py 2005-08-08 21:23:41 UTC (rev 37798)
+++ ZODB/branches/anguenot-ordering-beforecommitsubscribers/src/transaction/_transaction.py 2005-08-08 21:36:32 UTC (rev 37799)
@@ -148,6 +148,7 @@
from types import IntType
+import bisect
import logging
import sys
import thread
@@ -410,8 +411,8 @@
raise t, v, tb
def getBeforeCommitHooks(self):
- # Don't return the hook order value because of backward compatiblity.
- return iter([(x[1], x[2], x[3]) for x in self._before_commit])
+ # Don't return the hook order value because of backward compatibility.
+ return iter([x[1:4] for x in self._before_commit])
def beforeCommitHookOrdered(self, hook, order, *args, **kws):
if not isinstance(order, IntType):
More information about the Zodb-checkins
mailing list