[ZODB-Dev] How do you "wake up" sleepy persistent objects?

Chris Withers chrisw@nipltd.com
Fri, 12 Oct 2001 10:35:05 +0100


Jim Fulton wrote:
> 
> The only time to mess with a __dict__ is when you actually want
> to defeat the normal persistence machinery. 

...or acquisition :-S

What's the recommended way of _really_ finding out whether an object has an
attribute and making sure it hasn't been acquired?

(I used to use obj.__dict__.has_key('foo') but now i'm not sure...)

Chris