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

Remove a FIXME by implementing it. Use filter function supplied to history() API

function like it's done in FileStorage.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@997 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 8cdee0dc
......@@ -947,7 +947,6 @@ 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
cell_list = self._getCellListForOID(oid, readable=True)
......@@ -1009,7 +1008,8 @@ class Application(object):
self.local_var.txn_info['tid'] = serial
self.local_var.txn_info['version'] = None
self.local_var.txn_info['size'] = size
history_list.append(self.local_var.txn_info)
if filter is None or filter(self.local_var.txn_info):
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