[Zope3-checkins] CVS: Zope3/src/transaction - manager.py:1.9.12.1 txn.py:1.7.2.1

Grégoire Weber zope@i-con.ch
Sun, 22 Jun 2003 10:24:26 -0400


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

Modified Files:
      Tag: cw-mail-branch
	manager.py txn.py 
Log Message:
Synced up with HEAD

=== Zope3/src/transaction/manager.py 1.9 => 1.9.12.1 ===
--- Zope3/src/transaction/manager.py:1.9	Fri Apr 25 15:28:47 2003
+++ Zope3/src/transaction/manager.py	Sun Jun 22 10:22:23 2003
@@ -14,6 +14,8 @@
 import logging
 import sys
 
+from zope.interface import implements
+
 from transaction.interfaces import *
 from transaction.txn import Transaction, Status, Set
 
@@ -81,7 +83,7 @@
 
 class TransactionManager(AbstractTransactionManager):
 
-    __implements__ = ITransactionManager
+    implements(ITransactionManager)
 
     def __init__(self):
         self.logger = logging.getLogger("txn")
@@ -124,7 +126,7 @@
 
 class Rollback(object):
 
-    __implements__ = IRollback
+    implements(IRollback)
 
     def __init__(self, txn, resources):
         self._txn = txn
@@ -151,7 +153,7 @@
     # does need a lock to prevent two different threads from resuming
     # the same transaction.
 
-    __implements__ = ITransactionManager
+    implements(ITransactionManager)
 
     def __init__(self):
         self.logger = logging.getLogger("txn")


=== Zope3/src/transaction/txn.py 1.7 => 1.7.2.1 ===
--- Zope3/src/transaction/txn.py:1.7	Tue May 20 14:40:37 2003
+++ Zope3/src/transaction/txn.py	Sun Jun 22 10:22:23 2003
@@ -17,6 +17,7 @@
 from transaction.interfaces import *
 from threading import Lock
 import logging
+from zope.interface import implements
 
 try:
     from sets import Set
@@ -43,7 +44,7 @@
 
 class Transaction:
 
-    __implements__ = ITransaction
+    implements(ITransaction)
 
     def __init__(self, manager=None, parent=None):
         self._manager = manager