[Neo-report] r1904 gregory - /trunk/neo/client/iterator.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Mar 5 22:24:13 CET 2010
Author: gregory
Date: Fri Mar 5 22:24:12 2010
New Revision: 1904
Log:
Iterator must ignore initial transaction.
See IteratorTests.checkSimpleIteration from ZODB tests.
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] Fri Mar 5 22:24:12 2010
@@ -108,6 +108,12 @@
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']
More information about the Neo-report
mailing list