[Zope] __setstate__ and acquisition
Matt
matt.bion@eudoramail.com
Sun, 21 Jan 2001 10:11:00 +1300
I am using __setstate__ to reload files into memory for objects of a product I
have made. This all works nicely, as is it supposed to. The problem though is
that the object seems not to know about its environment at that time, i.e. it
cannot acquire methods further back in the hierachy, but is able to perfectly
well once it is fully instantiated. For example a product method may call a
render method that exists quite root to the whole site. This product method
will work fine when the object is fully instantiated , but trying to call that
render method during __setstate__ fails.
regards
Matt