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

2008-11-14 Thread Stephan Richter
On Friday 14 November 2008, Shane Hathaway wrote: > ... which opens the door for a lot of interesting ways to use the > persistence framework.  Linking your object to the root causes your > object to be managed by a ZODB.Connection and you get all the associated > assumptions about pickling, ID man

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

2008-11-14 Thread Jim Fulton
On Nov 14, 2008, at 6:51 PM, Shane Hathaway wrote: > Jim Fulton wrote: >> 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 happen

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

2008-11-14 Thread Shane Hathaway
Jim Fulton wrote: > 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 save

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

2008-11-14 Thread Jim Fulton
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 rea