[Zope] Copying objects

Dieter Maurer dieter@handshake.de
Mon, 19 Nov 2001 00:14:44 +0100


Jesper Holmberg writes:
 > * On Sat Nov 17, Dieter Maurer wrote:
 > > When you share objects that do not inherit from "Persistent", I expect
 > > that the sharing may be broken and you end up with two independent
 > > copies.
 > 
 > Oh, yes that sounds reasonable. But I thought that if I made the classes
 > Step, Itinerary and Link persistent (e.g. class Step(Folder, Persistent)),
 > that all their attributes would be persistent as well. Am I wrong?
They are persistent in the sense that they are written to ZODB (and later
loaded again). However, they do not become magically full persistent
objects. Especially, they do not yet OIDs which is probably necessary
to preserve sharing in the ZODB.


Dieter