20 Jan
2001
20 Jan
'01
9:11 p.m.
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