Commit bb9fe0d8 authored by Guido van Rossum's avatar Guido van Rossum

Oops. By renaming the callback methods I changed the wire protocol.

Change the wire protocol back by providing aliases.
parent 0964109a
......@@ -13,7 +13,7 @@
##############################################################################
"""Network ZODB storage client
$Id: ClientStorage.py,v 1.53 2002/08/28 18:59:06 gvanrossum Exp $
$Id: ClientStorage.py,v 1.54 2002/08/28 21:17:30 gvanrossum Exp $
"""
# XXX TO DO
......@@ -508,3 +508,15 @@ class ClientStorage:
"Invalidate(%s, %s) failed for _db: %s" % (repr(oid),
repr(version),
msg))
# Unfortunately, the ZEO 2 wire protocol uses different names for
# several of the callback methods invoked by the StorageServer.
# We can't change the wire protocol at this point because that
# would require synchronized updates of clients and servers and we
# don't want that. So here we alias the old names to their new
# implementations.
begin = beginVerify
invalidate = invalidateVerify
end = endVerify
Invalidate = invalidateTrans
......@@ -18,16 +18,16 @@ class ClientStorage:
self.rpc = rpc
def beginVerify(self):
self.rpc.callAsync('beginVerify')
self.rpc.callAsync('begin')
def invalidateVerify(self, args):
self.rpc.callAsync('invalidateVerify', args)
self.rpc.callAsync('invalidate', args)
def endVerify(self):
self.rpc.callAsync('endVerify')
self.rpc.callAsync('end')
def invalidateTrans(self, args):
self.rpc.callAsync('invalidateTrans', args)
self.rpc.callAsync('Invalidate', args)
def serialnos(self, arg):
self.rpc.callAsync('serialnos', arg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment