[ZODB-Dev] __setstate__
Magnus Lyckå
magnus@thinkware.se
Wed, 27 Mar 2002 22:43:49 +0100
I have a number of classes that subclass Persistence.Persistent.
I want to upgrade attributes for some of them, and understand
that I should do this in __setstate__.
Can someone give an example of how to do this?
Do I need to call __setstate__ of a base class (Persistence.Persistent)
in my own __setstate__?
Should I do something about __getstate__ as well?
Are there any particular gotchas or better alternatives?
--
Magnus Lyckå, Thinkware AB
Älvans väg 99, SE-907 50 UMEÅ
tel: 070-582 80 65, fax: 070-612 80 65
http://www.thinkware.se/ mailto:magnus@thinkware.se