[Zope] ZODB parent

Randall F. Kern randy@spoke.net
Thu, 22 Feb 2001 21:19:43 -0800


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
>=20
>=20
> aq_inner.aq_parent will probably work.
>=20
> ----- Original Message -----=20
> From: "Randall F. Kern" <randy@spoke.net>
> To: <zope@zope.org>
> Sent: Thursday, February 22, 2001 11:54 PM
> Subject: [Zope] ZODB parent
>=20
>=20
> Is it possible to get the container (ObjectManager) an Item is in?
>=20
> aq_parent won't work for me, I need the actual container.
>=20
> Obviously I could store the path to the OM in the items=20
> manage_afterAdd
> (although catching changes to the OM might be hard), but I was hoping
> for a cleaner solution.
> -Randy
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=20
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>=20
>=20
>=20