[Zope] Object
Matt
matt@inuan.com
Wed, 30 Jul 2003 11:55:12 +1200
The signature for __setstate__ can be found by evidence in zope/lib/python
do a
find . -name "*.py" | xargs grep -nH __setstate__
and you'll come up with many exmples. A search on Zope.org comes up
with useful info too.
regards
Matt
Gilles Lenfant wrote:
>--__--__--
>
>Pilot Systems
>http://www.pilotsystems.net
>
>66, rue de Provence
>75009 Paris
>Tel (direct): +33 1 44 53 25 93
>Tel (standard): +33 1 44 53 05 55
>Fax : +33 1 44 53 04 44
>
>mailto:gilles@pilotsystems.net
>----- Original Message -----
>From: "Matt" <matt@inuan.com>
>To: "Gilles Lenfant" <gilles@pilotsystems.net>; <zope@zope.org>
>Sent: Tuesday, July 29, 2003 12:47 AM
>Subject: Re: [Zope] Object
>
>
>
>
>>You can define a __setstate__ method, but be aware that it has some
>>restrictions, such as self not being acquisition wrapped. If you need
>>
>>
>those
>
>
>>features of a fully instantiated published object, then attribute checks
>>
>>
>in
>
>
>>a getter will allow you to test for the presence of the attribute and
>>
>>
>create
>
>
>>it if needed.
>>
>>
>>
>>
>
>Many thanks Matt...
>
>Where can I find the signature of that __setstate__ method ?
>
>Cheers
>
>--Gilles
>
>
>
>
>
>