Commit b49255b3 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Drop version support in iterator.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2527 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 4e2d7324
...@@ -25,9 +25,8 @@ from neo.client.exception import NEOStorageNotFoundError ...@@ -25,9 +25,8 @@ from neo.client.exception import NEOStorageNotFoundError
class Record(BaseStorage.DataRecord): class Record(BaseStorage.DataRecord):
""" TBaseStorageransaction record yielded by the Transaction object """ """ TBaseStorageransaction record yielded by the Transaction object """
def __init__(self, oid, tid, version, data, prev): def __init__(self, oid, tid, data, prev):
BaseStorage.DataRecord.__init__(self, oid, tid, data, prev) BaseStorage.DataRecord.__init__(self, oid, tid, data, prev)
self.version = version
def __str__(self): def __str__(self):
oid = util.u64(self.oid) oid = util.u64(self.oid)
...@@ -78,7 +77,7 @@ class Transaction(BaseStorage.TransactionRecord): ...@@ -78,7 +77,7 @@ class Transaction(BaseStorage.TransactionRecord):
self.oid_index = 0 self.oid_index = 0
raise StopIteration raise StopIteration
self.oid_index = oid_index self.oid_index = oid_index
record = Record(oid, self.tid, '', data, record = Record(oid, self.tid, data,
self.prev_serial_dict.get(oid)) self.prev_serial_dict.get(oid))
if next_tid is None: if next_tid is None:
self.prev_serial_dict.pop(oid, None) self.prev_serial_dict.pop(oid, None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment