[Zodb-checkins] CVS: Zope3/src/transaction - manager.py:1.10
txn.py:1.8
Steve Alexander
steve at cat-box.net
Fri Jun 6 12:24:49 EDT 2003
Update of /cvs-repository/Zope3/src/transaction
In directory cvs.zope.org:/tmp/cvs-serv25930/src/transaction
Modified Files:
manager.py txn.py
Log Message:
Changed old style __implements__ declarations to new-style implements()
ones.
=== Zope3/src/transaction/manager.py 1.9 => 1.10 ===
--- Zope3/src/transaction/manager.py:1.9 Fri Apr 25 15:28:47 2003
+++ Zope3/src/transaction/manager.py Fri Jun 6 11:24:18 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.8 ===
--- Zope3/src/transaction/txn.py:1.7 Tue May 20 14:40:37 2003
+++ Zope3/src/transaction/txn.py Fri Jun 6 11:24:18 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
More information about the Zodb-checkins
mailing list