[Neo-report] r2526 gregory - /trunk/neo/client/iterator.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Dec 13 17:16:07 CET 2010
Author: gregory
Date: Mon Dec 13 17:16:07 2010
New Revision: 2526
Log:
Base classes already implement those interfaces, inherit properly.
Modified:
trunk/neo/client/iterator.py
Modified: trunk/neo/client/iterator.py
==============================================================================
--- trunk/neo/client/iterator.py [iso-8859-1] (original)
+++ trunk/neo/client/iterator.py [iso-8859-1] Mon Dec 13 17:16:07 2010
@@ -25,16 +25,9 @@ from neo.client.exception import NEOStor
class Record(BaseStorage.DataRecord):
""" TBaseStorageransaction record yielded by the Transaction object """
- implements(
- ZODB.interfaces.IStorageRecordInformation,
- )
-
def __init__(self, oid, tid, version, data, prev):
- self.oid = oid
- self.tid = tid
+ BaseStorage.DataRecord.__init__(self, oid, tid, data, prev)
self.version = version
- self.data = data
- self.data_txn = prev
def __str__(self):
oid = util.u64(self.oid)
@@ -46,20 +39,11 @@ class Record(BaseStorage.DataRecord):
class Transaction(BaseStorage.TransactionRecord):
""" Transaction object yielded by the NEO iterator """
- implements(
- # TODO: add support for "extension" property so we implement entirely
- # this interface.
- # ZODB.interfaces.IStorageTransactionInformation,
- )
-
def __init__(self, app, tid, status, user, desc, ext, oid_list,
prev_serial_dict):
+ BaseStorage.TransactionRecord.__init__( self, tid, status, user, desc,
+ ext)
self.app = app
- self.tid = tid
- self.status = status
- self.user = user
- self.description = desc
- self._extension = ext
self.oid_list = oid_list
self.oid_index = 0
self.history = []
More information about the Neo-report
mailing list