[Zodb-checkins] CVS: Zope3/src/zodb/zeo/zrpc - client.py:1.2.8.1 error.py:1.2.8.1

Jeremy Hylton jeremy@zope.com
Tue, 4 Feb 2003 17:54:24 -0500


Update of /cvs-repository/Zope3/src/zodb/zeo/zrpc
In directory cvs.zope.org:/tmp/cvs-serv6570/src/zodb/zeo/zrpc

Modified Files:
      Tag: storage-interface-branch
	client.py error.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/zrpc/client.py 1.2 => 1.2.8.1 ===
--- Zope3/src/zodb/zeo/zrpc/client.py:1.2	Wed Dec 25 09:12:23 2002
+++ Zope3/src/zodb/zeo/zrpc/client.py	Tue Feb  4 17:54:20 2003
@@ -19,7 +19,7 @@
 import time
 import types
 
-from zodb.interfaces import ReadOnlyError
+from zodb.storage.interfaces import ReadOnlyError
 
 from zodb.zeo import threadedasync
 from zodb.zeo.zrpc import log


=== Zope3/src/zodb/zeo/zrpc/error.py 1.2 => 1.2.8.1 ===
--- Zope3/src/zodb/zeo/zrpc/error.py:1.2	Wed Dec 25 09:12:23 2002
+++ Zope3/src/zodb/zeo/zrpc/error.py	Tue Feb  4 17:54:20 2003
@@ -11,10 +11,10 @@
 # FOR A PARTICULAR PURPOSE
 #
 ##############################################################################
-from zodb import interfaces
+from zodb.storage.interfaces import StorageError
 from zodb.zeo.interfaces import Disconnected
 
-class ZRPCError(interfaces.StorageError):
+class ZRPCError(StorageError):
     pass
 
 class DisconnectedError(ZRPCError, Disconnected):