[Zope] access to other zope objects in __setstate__

Sylvain Thénault Sylvain Thénault
Fri, 6 Jun 2003 14:27:25 +0200


hello !

Almost everything is in the subject: i would like to access to a portal
tool in the __setstate__ method for an object, but it seems that when
this method is called 'self' isn't the acquisition wrapper, so I get an
AttributeError.
What's the good place to access to other zope objects when an
instance is loaded ?

TIA
-- 
Sylvain Thénault                               LOGILAB, Paris (France).

http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org