Commit 9f8baf67 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix txn_info attribut access through self.local_var instead of self


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@405 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 453fdf07
......@@ -810,7 +810,7 @@ class Application(object):
undo_info = self.undoLog(first=first, last=last*5, filter=filter, block=1)
return undo_info
# FIXME: filter function isn't used
def history(self, oid, version=None, length=1, filter=None, object_only=0):
# Get history informations for object first
partition_id = u64(oid) % self.num_partitions
......@@ -879,12 +879,12 @@ class Application(object):
break
# create history dict
self.txn_info.remove('id')
self.txn_info.remove('oids')
self.txn_info['serial'] = serial
self.txn_info['version'] = None
self.txn_info['size'] = size
history_list.append(self.txn_info)
self.local_var.txn_info.pop('id')
self.local_var.txn_info.pop('oids')
self.local_var.txn_info['serial'] = serial
self.local_var.txn_info['version'] = None
self.local_var.txn_info['size'] = size
history_list.append(self.local_var.txn_info)
return history_list
......
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