[Zodb-checkins]
SVN: ZODB/branches/jim-storage-api-cleanup/src/ZODB/
Added missing close and cleanup methods.
Jim Fulton
jim at zope.com
Thu Apr 26 15:01:08 EDT 2007
Log message for revision 74812:
Added missing close and cleanup methods.
These were provided (incorrectoy for demo storage) by BaseStorage.
Changed:
U ZODB/branches/jim-storage-api-cleanup/src/ZODB/DemoStorage.py
U ZODB/branches/jim-storage-api-cleanup/src/ZODB/MappingStorage.py
U ZODB/branches/jim-storage-api-cleanup/src/ZODB/tests/test_storage.py
-=-
Modified: ZODB/branches/jim-storage-api-cleanup/src/ZODB/DemoStorage.py
===================================================================
--- ZODB/branches/jim-storage-api-cleanup/src/ZODB/DemoStorage.py 2007-04-26 18:38:01 UTC (rev 74811)
+++ ZODB/branches/jim-storage-api-cleanup/src/ZODB/DemoStorage.py 2007-04-26 19:01:08 UTC (rev 74812)
@@ -566,3 +566,11 @@
o.append(' %s: %s' % (oid_repr(oid), r))
return '\n'.join(o)
+
+ def cleanup(self):
+ if self._base is not None:
+ self._base.cleanup()
+
+ def close(self):
+ if self._base is not None:
+ self._base.close()
Modified: ZODB/branches/jim-storage-api-cleanup/src/ZODB/MappingStorage.py
===================================================================
--- ZODB/branches/jim-storage-api-cleanup/src/ZODB/MappingStorage.py 2007-04-26 18:38:01 UTC (rev 74811)
+++ ZODB/branches/jim-storage-api-cleanup/src/ZODB/MappingStorage.py 2007-04-26 19:01:08 UTC (rev 74812)
@@ -139,3 +139,9 @@
(u64(oid), TimeStamp(r[:8]), repr(r[8:])))
return '\n'.join(o)
+
+ def cleanup(self):
+ pass
+
+ def close(self):
+ pass
Modified: ZODB/branches/jim-storage-api-cleanup/src/ZODB/tests/test_storage.py
===================================================================
--- ZODB/branches/jim-storage-api-cleanup/src/ZODB/tests/test_storage.py 2007-04-26 18:38:01 UTC (rev 74811)
+++ ZODB/branches/jim-storage-api-cleanup/src/ZODB/tests/test_storage.py 2007-04-26 19:01:08 UTC (rev 74812)
@@ -145,6 +145,11 @@
finally:
self._lock_release()
+ def close(self):
+ pass
+
+ cleanup = close
+
class MinimalTestSuite(StorageTestBase.StorageTestBase,
BasicStorage.BasicStorage,
MTStorage.MTStorage,
More information about the Zodb-checkins
mailing list