Commit be9fdaa2 authored by Vincent Pelletier's avatar Vincent Pelletier

Revert changes to client.storage.Storage.load from r2510.

It broke ZODB tests.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2521 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent bc6dc06b
......@@ -68,7 +68,10 @@ class Storage(BaseStorage.BaseStorage,
compress=compress)
self._cache = DummyCache(self.app)
def load(self, oid, version):
def load(self, oid, version=''):
# XXX: interface deifinition states that version parameter is
# mandatory, while some ZODB tests do not provide it. For now, make
# it optional.
assert version == '', 'Versions are not supported'
try:
return self.app.load(oid=oid)
......
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