Commit f76cde1a authored by Jeremy Hylton's avatar Jeremy Hylton

Add update() method to ClientStorage. Formerly known as sync().

parent 2c7a85f3
......@@ -13,7 +13,7 @@
##############################################################################
"""Network ZODB storage client
$Id: ClientStorage.py,v 1.54 2002/08/28 21:17:30 gvanrossum Exp $
$Id: ClientStorage.py,v 1.55 2002/09/08 00:20:20 jeremy Exp $
"""
# XXX TO DO
......@@ -171,6 +171,10 @@ class ClientStorage:
else:
return 1
def update(self):
"""Handle any pending invalidation messages."""
self._server._update()
def notifyConnected(self, conn):
log2(INFO, "Connected to storage via %s" % repr(conn))
......
......@@ -18,6 +18,9 @@ class StorageServer:
def __init__(self, rpc):
self.rpc = rpc
def _update(self):
self.rpc.pending()
def register(self, storage_name, read_only):
self.rpc.call('register', storage_name, read_only)
......
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