[Neo-report] r2521 vincent - /trunk/neo/client/Storage.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Dec 13 12:01:22 CET 2010


Author: vincent
Date: Mon Dec 13 12:01:22 2010
New Revision: 2521

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

It broke ZODB tests.

Modified:
    trunk/neo/client/Storage.py

Modified: trunk/neo/client/Storage.py
==============================================================================
--- trunk/neo/client/Storage.py [iso-8859-1] (original)
+++ trunk/neo/client/Storage.py [iso-8859-1] Mon Dec 13 12:01:22 2010
@@ -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)




More information about the Neo-report mailing list