[Zope] Object
Matt
matt@inuan.com
Tue, 29 Jul 2003 10:47:55 +1200
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.
----- Original Message -----
From: "Gilles Lenfant" <gilles@pilotsystems.net>
To: <zope@zope.org>
Sent: Tuesday, July 29, 2003 1:49 AM
Subject: [Zope] Object
> Hi,
>
> I made a Product class with unpicklable attributes (compiled TALES
> expressions).
> Thus I got to name those _v_foo
> But for re-creating these attributes, I need to have a hook method called
> when the object is extracted from ZODB.
>
> Is there such a hook method in Zope core classes ?
>
> Thanks in advance.
>
> --Gilles
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>