[Zodb-checkins] CVS: Packages/ZEO - ServerStub.py:1.1.2.7 StorageServer.py:1.21.4.12
jeremy@digicool.com
jeremy@digicool.com
Tue, 8 May 2001 16:36:12 -0400 (EDT)
Update of /cvs-repository/Packages/ZEO
In directory korak:/tmp/cvs-serv12634
Modified Files:
Tag: ZEO-ZRPC-Dev
ServerStub.py StorageServer.py
Log Message:
Change register() to a synchronous call and raise ValueError when it
is passed an invalid argument. This will cause the ClientStorage
constructor to fail when it is passed an invalid argument.
--- Updated File ServerStub.py in package Packages/ZEO --
--- ServerStub.py 2001/04/27 20:57:19 1.1.2.6
+++ ServerStub.py 2001/05/08 20:36:11 1.1.2.7
@@ -6,7 +6,7 @@
self.rpc = rpc
def register(self, storage_name):
- self.rpc.callAsync('register', storage_name)
+ self.rpc.call('register', storage_name)
def get_info(self):
return self.rpc.call('get_info')
--- Updated File StorageServer.py in package Packages/ZEO --
--- StorageServer.py 2001/04/27 20:57:19 1.21.4.11
+++ StorageServer.py 2001/05/08 20:36:11 1.21.4.12
@@ -221,7 +221,7 @@
storage = self.server.storages.get(storage_id)
if storage is None:
self._log("unknown storage_id: %s" % storage_id)
- self.get_caller.close()
+ raise ValueError, "unknown storage: %s" % storage_id
self.__storage_id = storage_id
self.__storage = storage