[ZODB-Dev] ZEO 2.0a1 release
Toby Dickenson
tdickenson@geminidataloggers.com
Thu, 13 Jun 2002 10:26:53 +0100
On Friday 31 May 2002 5:02 pm, Jeremy Hylton wrote:
> TD> 1. It would be nice for a server-side storage to be able to
> TD> declare that he
> TD> has some extra methods that should be proxied from the
> TD> ClientStorage. That could happen in ZEO1, but only by
> TD> subclassing everything.
>
> Good idea.
Thinking further, I think doing this properly makes things unnecessarily=20
complicated. But I still need the functionality :-( =20
What about adding this method to the storage interface, with simple proxy=
ing=20
by ZEO, and something appropriate in BaseStorage:
def signal(signalname, args):
"""Perform some storage-specific operation on the storage,
not covered by the Storage API.
signalname is a string name of the operation.=20
A storage should raise NotImplementedError for all signal
names that it does not recognise.
"""
Its a hack, but I think a reasonable one. Any thoughts?