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

Iterator must ignore initial transaction.

See IteratorTests.checkSimpleIteration from ZODB tests.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1904 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent cd8a8e07
......@@ -108,6 +108,12 @@ class Iterator(object):
self._next += len(self.txn_list)
txn = self.txn_list.pop()
self._index += 1
if txn['oids'] == ['\0' * 8]:
# XXX: hack, skip initial transaction that store the root object
if not self.txn_list:
raise StopIteration
txn = self.txn_list.pop()
self._index += 1
tid = txn['id']
user = txn['user_name']
desc = txn['description']
......
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