[Zodb-checkins] CVS: ZODB/src/ZODB - transact.py:1.4
Jeremy Hylton
jeremy at zope.com
Fri Apr 16 11:58:44 EDT 2004
Update of /cvs-repository/ZODB/src/ZODB
In directory cvs.zope.org:/tmp/cvs-serv11088/src/ZODB
Modified Files:
transact.py
Log Message:
Replace use of builtin get_transaction() with explicit transaction module.
=== ZODB/src/ZODB/transact.py 1.3 => 1.4 ===
--- ZODB/src/ZODB/transact.py:1.3 Thu Oct 2 14:17:19 2003
+++ ZODB/src/ZODB/transact.py Fri Apr 16 11:58:12 2004
@@ -16,7 +16,7 @@
from ZODB.POSException import ReadConflictError, ConflictError
def _commit(note):
- t = get_transaction()
+ t = transaction.get()
if note:
t.note(note)
t.commit()
@@ -42,14 +42,14 @@
try:
r = f(*args, **kwargs)
except ReadConflictError, msg:
- get_transaction().abort()
+ transaction.abort()
if not n:
raise
continue
try:
_commit(note)
except ConflictError, msg:
- get_transaction().abort()
+ transaction.abort()
if not n:
raise
continue
More information about the Zodb-checkins
mailing list