[Zope3-checkins] CVS: Zope3/src/transaction - interfaces.py:1.5.50.2
Jim Fulton
jim at zope.com
Fri Jan 16 10:44:00 EST 2004
Update of /cvs-repository/Zope3/src/transaction
In directory cvs.zope.org:/tmp/cvs-serv19071/src/transaction
Added Files:
Tag: zope3-zodb3-devel-branch
interfaces.py
Log Message:
Various changes to get tests passing.
=== Zope3/src/transaction/interfaces.py 1.5.50.1 => 1.5.50.2 ===
--- /dev/null Fri Jan 16 10:43:59 2004
+++ Zope3/src/transaction/interfaces.py Fri Jan 16 10:43:29 2004
@@ -0,0 +1,40 @@
+##############################################################################
+#
+# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+from zope.interface import Interface
+
+
+class IDataManager(Interface):
+ """Data management interface for storing objects transactionally
+
+ This is currently implemented by ZODB database connections.
+ """
+
+ def prepare(transaction):
+ """Begin two-phase commit of a transaction.
+
+ The data manager must raise an exception if it is not prepared
+ to commit the transaction after executing prepare().
+ """
+
+ def abort(transaction):
+ """Abort changes made by transaction."""
+
+ def commit(transaction):
+ """Commit changes made by transaction."""
+
+ def savepoint(transaction):
+ """Do tentative commit of changes to this point.
+
+ Should return an object implementing IRollback
+ """
More information about the Zope3-Checkins
mailing list