[Zope-dev] volatile state maintenance

Toby Dickenson tdickenson@geminidataloggers.com
Mon, 10 Apr 2000 08:56:23 +0100


>> On Sun, 09 Apr 2000 22:56:05 -0700, Sam Gendler <sgendler@silcom.com>
>> wrote:
>> >Is there an opposite function to __setstate__, which would allow me to
>> >close the connection before it gets blown away.


On Mon, 10 Apr 2000 00:48:36 -0700, Sam Gendler <sgendler@silcom.com>
wrote:
>Actually, I was thinking about a function that gets called just before
>the object gets pickled for insertion into the ZODB, which would allow
>me to set a 'connected' variable to some meaningfule value.

From what youve said, I'm confused about _why_ you want this. But, the
method you are looking for is __getstate__



Toby Dickenson
tdickenson@geminidataloggers.com