Commit 9609d1a1 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Iterator handles extension informations.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2541 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 08c5a329
......@@ -1184,12 +1184,14 @@ class Application(object):
'be found' % (tid, )
if filter is None or filter(self.local_var.txn_info):
self.local_var.txn_info.pop('packed')
txn_info = self.local_var.txn_info
txn_info.pop('packed')
if not with_oids:
self.local_var.txn_info.pop("oids")
append(self.local_var.txn_info)
self._insertMetadata(self.local_var.txn_info,
self.local_var.txn_ext)
txn_info.pop("oids")
self._insertMetadata(txn_info, self.local_var.txn_ext)
else:
txn_info['ext'] = loads(self.local_var.txn_ext)
append(txn_info)
if len(undo_info) >= last - first:
break
# Check we return at least one element, otherwise call
......
......@@ -156,7 +156,7 @@ class Iterator(object):
user = txn['user_name']
desc = txn['description']
oid_list = txn['oids']
extension = {} # as expected by the ZODB
extension = txn['ext']
txn = Transaction(self.app, tid, ' ', user, desc, extension, oid_list,
self._prev_serial_dict)
return txn
......
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