[Zope3-checkins] CVS: Zope3/src/transaction - _transaction.py:1.1.2.16

Jeremy Hylton jeremy at zope.com
Mon Mar 22 10:37:41 EST 2004


Update of /cvs-repository/Zope3/src/transaction
In directory cvs.zope.org:/tmp/cvs-serv8111

Modified Files:
      Tag: jeremy-txn-branch
	_transaction.py 
Log Message:
Remove debugging prints.


=== Zope3/src/transaction/_transaction.py 1.1.2.15 => 1.1.2.16 ===
--- Zope3/src/transaction/_transaction.py:1.1.2.15	Fri Mar 19 17:29:51 2004
+++ Zope3/src/transaction/_transaction.py	Mon Mar 22 10:37:40 2004
@@ -162,8 +162,6 @@
     def _commitResources(self, subtransaction):
         # Execute the two-phase commit protocol.
 
-        print "commit", subtransaction
-
         L = self._getResourceManagers(subtransaction)
         try:
             for rm in L:
@@ -173,11 +171,9 @@
                 # transaction is committing, you must then call
                 # commit_sub().
                 if not subtransaction and id(rm) in self._sub:
-                    print "commit_sub", rm
                     del self._sub[id(rm)]
                     rm.commit_sub(self)
                 else:
-                    print "tpc_begin", subtransaction, rm
                     rm.tpc_begin(self, subtransaction)
             if not subtransaction:
                 # Not sure why, but it is intentional that you do not
@@ -187,7 +183,6 @@
             for rm in L:
                 rm.tpc_finish(self)
         except:
-            print self._sub.keys()
             self._cleanup(L)
             raise
 
@@ -198,13 +193,11 @@
                 rm.cleanup(self)
         for rm in L:
             if id(rm) in self._sub:
-                print "cleanup", rm, "abort_sub"
                 try:
                     rm.abort_sub(self)
                 except Exception, err:
                     print err
             else:
-                print "cleanup", rm, "tpc_abort"
                 try:
                     rm.tpc_abort(self)
                 except Exception, err:




More information about the Zope3-Checkins mailing list