Thanks, but that doesn't actually work. aq_inner.aq_parent has the same value as aq_parent. The scenario is complicated. Here's a diagram of the db: root a b c b.__of__ inserts c into the chain above b, yet c has a method that needs to find it's siblings when run in this strange context. -Randy
-----Original Message----- From: Chris McDonough [mailto:chrism@digicool.com] Sent: Thursday, February 22, 2001 9:36 PM To: Randall F. Kern; zope@zope.org Subject: Re: [Zope] ZODB parent
aq_inner.aq_parent will probably work.
----- Original Message ----- From: "Randall F. Kern" <randy@spoke.net> To: <zope@zope.org> Sent: Thursday, February 22, 2001 11:54 PM Subject: [Zope] ZODB parent
Is it possible to get the container (ObjectManager) an Item is in?
aq_parent won't work for me, I need the actual container.
Obviously I could store the path to the OM in the items manage_afterAdd (although catching changes to the OM might be hard), but I was hoping for a cleaner solution. -Randy
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )