On Sunday 11 November 2001 09:05 pm, Paul Winkler allegedly wrote:
I have a Product I'm creating (python, not Zclass). I thought that I could get the parent object of an instance of my product using the aq_parent method. But AFAIKT, this only works on an "acquisition wrapper" of an object - not on the object itself??
Ummm, I don't see how acquisition could work any other way. Remember, at this point in the code, the object is not mounted in the ZODB yet, and therefore has no parent. There is a recipe on ZopeLabs regarding this issue . Check out: http://www.zopelabs.com/cookbook/995468614 [snip]
So I guess I need to get an acquisition wrapper to self, so I can acquire its parent? How do I do that? I can't figure it out from the DevGuide. Or Is there a less bletcherous solution? Help!
hth, /---------------------------------------------------\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association c.duncan@nlada.org \---------------------------------------------------/