RE: [Zope3-dev] zodb __parent__ and weakref

2006-02-24 Thread Shaun Cutts
Chris, You need to get into the habbit of CC'ing in the list you're replying too... Sorry -- I was thinking that, if this was not a problem w/ ZODB and external objects, but I've missed something in implementation, maybe I should have been communicating on Zope3-users instead. Now I don't know

RE: [Zope3-dev] zodb __parent__ and weakref

2006-02-24 Thread Shaun Cutts
Opps, The code I said would be attached... -Original Message- From: [EMAIL PROTECTED] [mailto:zope3-dev- [EMAIL PROTECTED] On Behalf Of Shaun Cutts Sent: Friday, February 24, 2006 10:18 PM To: 'Chris Withers'; [EMAIL PROTECTED]; 'zope3-dev' Subject: RE: [Zope3-dev] zodb

Re: [Zope3-dev] zodb __parent__ and weakref

2006-02-20 Thread Chris Withers
Shaun Cutts wrote: But maybe my I'm misinterpreting the calls to __setstate__? It seems unnecessary to call __setstate__ at all, as we already know the copies in memory are fresh. It sounds like you've implemented both __getstate__ and __setstate__. Why? What's your base concern here, 'cos I

Re: [Zope3-dev] zodb __parent__ and weakref

2006-02-17 Thread Chris Withers
Shaun Cutts wrote: When a container gets pickled to be put into zodb, what happens to the subtree? If the container has references to stuff that is contains, one of two things could happen: 1. If the contents subclass persistent, then they will end up in their own pickle in the zodb and

RE: [Zope3-dev] zodb __parent__ and weakref

2006-02-17 Thread Shaun Cutts
Chris, -Original Message- From: Chris Withers [mailto:[EMAIL PROTECTED] Shaun Cutts wrote: When a container gets pickled to be put into zodb, what happens to the subtree? If the container has references to stuff that is contains, one of two things could happen: 1. If the

[Zope3-dev] zodb __parent__ and weakref

2006-02-16 Thread Shaun Cutts
One thing I havent got my mind around yet: I notice that zodb is fairly active about calling __getstate__ and __setstate__. When a container gets pickled to be put into zodb, what happens to the subtree? Is it just left as a big clump of stuff for the garbage collector to deal with?