[Zodb-checkins] SVN: ZODB/branches/3.4/src/transaction/interfaces.py Removed a "self" argument. self is normally not shown in interfaces.

Jim Fulton jim at zope.com
Mon Apr 25 10:51:17 EDT 2005


Log message for revision 30161:
  Removed a "self" argument. self is normally not shown in interfaces.
  
  Removed the freeme argument.  This argument is part of the
  implementation, not the public interface.
  
  Removed the subtransaction argument.  Although it is still supported,
  it isn't part of the pblic interface.
  
  Added missing documentation of the savepoint method.
  

Changed:
  U   ZODB/branches/3.4/src/transaction/interfaces.py

-=-
Modified: ZODB/branches/3.4/src/transaction/interfaces.py
===================================================================
--- ZODB/branches/3.4/src/transaction/interfaces.py	2005-04-25 14:41:08 UTC (rev 30160)
+++ ZODB/branches/3.4/src/transaction/interfaces.py	2005-04-25 14:51:16 UTC (rev 30161)
@@ -39,10 +39,21 @@
         """Commit the current transaction
         """
 
-    def abort(self):
+    def abort():
         """Abort the current transaction
         """
 
+    def savepoint(optimistic=False):
+        """Create a savepoint from the current transaction.
+
+        If the optimistic argument is true, then data managers that
+        don't support savepoints can be used, but an error will be
+        raised if the savepoint is rolled back.
+
+        An ISavepoint object is returned.
+        """
+        
+
     def registerSynch(synch):
         """Register an ISynchronizer.
 
@@ -91,20 +102,30 @@
         raise an exception, or truncate the value).
         """)
 
-    def commit(subtransaction=None):
+    def commit():
         """Finalize the transaction.
 
         This executes the two-phase commit algorithm for all
         IDataManager objects associated with the transaction.
         """
 
-    def abort(subtransaction=0, freeme=1):
+    def abort():
         """Abort the transaction.
 
         This is called from the application.  This can only be called
         before the two-phase commit protocol has been started.
         """
 
+    def savepoint(optimistic=False):
+        """Create a savepoint.
+
+        If the optimistic argument is true, then data managers that
+        don't support savepoints can be used, but an error will be
+        raised if the savepoint is rolled back.
+
+        An ISavepoint object is returned.
+        """
+
     def join(datamanager):
         """Add a datamanager to the transaction.
 



More information about the Zodb-checkins mailing list