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

Fix missing default value to None for version argument of history() ZODB

implementation that cause a failure when called without value in getSerial().


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@375 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 508be503
...@@ -827,7 +827,7 @@ class Application(object): ...@@ -827,7 +827,7 @@ class Application(object):
return undo_info return undo_info
def history(self, oid, version, length=1, filter=None, object_only=0): def history(self, oid, version=None, length=1, filter=None, object_only=0):
# Get history informations for object first # Get history informations for object first
partition_id = u64(oid) % self.num_partitions partition_id = u64(oid) % self.num_partitions
cell_list = self.pt.getCellList(partition_id, True) cell_list = self.pt.getCellList(partition_id, True)
......
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