[Zope3-checkins] CVS: Zope3/src/zodb/zeo/tests - cache.py:1.2.8.1 connection.py:1.4.4.1
Jeremy Hylton
jeremy@zope.com
Tue, 4 Feb 2003 17:54:51 -0500
Update of /cvs-repository/Zope3/src/zodb/zeo/tests
In directory cvs.zope.org:/tmp/cvs-serv6570/src/zodb/zeo/tests
Modified Files:
Tag: storage-interface-branch
cache.py connection.py
Log Message:
Refactor storage interfaces.
Move a bunch of exceptions related to storages from zodb.interfaces to
zodb.storages.interfaces.
Add __implements__ statements in all the concrete storage classes.
Add a simple (good?) mechanism to propagate __implements__ values from
a ZEO storage to its clients.
Remove all use of supportsXXX() methods in favor of
ISomeInterface.isImplementedBy().
=== Zope3/src/zodb/zeo/tests/cache.py 1.2 => 1.2.8.1 ===
--- Zope3/src/zodb/zeo/tests/cache.py:1.2 Wed Dec 25 09:12:22 2002
+++ Zope3/src/zodb/zeo/tests/cache.py Tue Feb 4 17:54:18 2003
@@ -16,6 +16,7 @@
from zodb.ztransaction import Transaction
from zodb.storage.tests.minpo import MinPO
from zodb.storage.tests.base import zodb_unpickle
+from zodb.storage.interfaces import IUndoStorage
class TransUndoStorageWithCache:
@@ -34,7 +35,7 @@
# We may need to bail at this point if the storage doesn't
# support transactional undo
- if not self._storage.supportsTransactionalUndo():
+ if not IUndoStorage.isImplementedBy(self._storage):
return
# Now start an undo transaction
=== Zope3/src/zodb/zeo/tests/connection.py 1.4 => 1.4.4.1 ===
--- Zope3/src/zodb/zeo/tests/connection.py:1.4 Mon Jan 27 14:44:14 2003
+++ Zope3/src/zodb/zeo/tests/connection.py Tue Feb 4 17:54:18 2003
@@ -29,8 +29,8 @@
from zodb.zeo.tests import forker
from transaction import get_transaction
-from zodb.interfaces import ReadOnlyError
from zodb.ztransaction import Transaction
+from zodb.storage.interfaces import ReadOnlyError
from zodb.storage.tests.base import StorageTestBase
from zodb.storage.tests.minpo import MinPO
from zodb.storage.tests.base import zodb_pickle, zodb_unpickle