[Zope] Not persistent on all classes please

Chris Withers chrisw@nipltd.com
Wed, 05 Sep 2001 16:02:33 +0100


Peter Bengtsson wrote:
> 
> PS. All I know about persistance is that if you base class it, you
> automatically get persistent objects. How it happens, I don't know.

They only stay around if you store references to them anywhere...

eg:

x.b = a

Now, if x is stored persistently (ie somewhere else you have y.b=x), then a will
be too.
Inheritence from the Persistent class doesn't haev that much to do with it to be
honest ;-)

cheers,

Chris