[Zope3-checkins] CVS: ZODB/src/transaction - __init__.py:1.6
Jeremy Hylton
jeremy at zope.com
Thu Apr 15 21:21:42 EDT 2004
Update of /cvs-repository/ZODB/src/transaction
In directory cvs.zope.org:/tmp/cvs-serv13580
Modified Files:
__init__.py
Log Message:
Add optional subtransaction arguments to top-level commit() and abort().
=== ZODB/src/transaction/__init__.py 1.5 => 1.6 ===
--- ZODB/src/transaction/__init__.py:1.5 Wed Mar 31 22:56:56 2004
+++ ZODB/src/transaction/__init__.py Thu Apr 15 21:21:41 2004
@@ -23,11 +23,11 @@
def begin():
return manager.begin()
-def commit():
- manager.get().commit()
+def commit(sub=False):
+ manager.get().commit(sub)
-def abort():
- manager.get().abort()
+def abort(sub=False):
+ manager.get().abort(sub)
# XXX Issue deprecation warning if this variant is used?
get_transaction = get
More information about the Zope3-Checkins
mailing list