[ZODB-Dev] A koan: persistent object with no container

Jim Fulton jim at zope.com
Fri Nov 14 18:21:14 EST 2008


On Nov 14, 2008, at 6:16 PM, Paul Winkler wrote:

> If I instantiate a subclass of Persistent, but I don't ever assign it
> as an attribute on the root (or any other Persistent instance) ...
> then what happens to my instance when the transaction commits?
>
> A) it's saved in the ZODB, but not reachable?
> or
> B) it's never saved at all?
> or
> C) something else that I can't imagine?


B. IOW, nothing.

JIm

--
Jim Fulton
Zope Corporation




More information about the ZODB-Dev mailing list