Hi. I want to have a ClientStorage that would work in both connected and disconnected (to zeo-server) mode. When zeo-server is not up (or reachable), I would like ClientStorage to use a local cache. Is that possible with ZEO?
Right now I instanciate ClientStorage with ClientStorage( zeoServerAddress, name = 'name', client = 'client', var = 'path', wait = False ) When I try to access the attributes of the root persistent object (instance of PersistentMapping) I get a ClientDisconnected exception: /usr/lib/python2.4/site-packages/ZODB/Connection.py in setstate(self, obj) /usr/lib/python2.4/site-packages/ZODB/Connection.py in _setstate(self, obj) /usr/lib/python2.4/site-packages/ZEO/ClientStorage.py in load(self, oid, version) /usr/lib/python2.4/site-packages/ZEO/ClientStorage.py in loadEx(self, oid, version) /usr/lib/python2.4/site-packages/ZEO/ClientStorage.py in __getattr__(self, attr) ClientDisconnected: I know that the client is disconnected, as zeo-server is not up, but how can I make it so that I won't get this exception anymore, but instead have ZEO read the persistent objects from the local cache, transparently? Thanks. -Mihai _______________________________________________ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org http://mail.zope.org/mailman/listinfo/zodb-dev