[Zope] Parents id of a specific object

marc lindahl marc@bowery.com
Wed, 18 Jul 2001 13:23:42 -0400


But be careful... you'll get an error when you bump up against the root.
You need to test for it... something like

<dtml-if expr="_.hasattr(this(), 'aq_parent')">
<dtml-if expr="_.hasattr(this().aq_parent, 'aq_parent')">


> From: "Benoit Dominiak" <benoit.dominiak@makinacorpus.com>
> Date: Wed, 18 Jul 2001 14:39:48 +0100
> To: "marc lindahl" <marc@bowery.com>
> Subject: RE: [Zope] Parents id of a specific object
> 
> 
> Yes, it works !! Thanks
> I can even make "this().aq_parent.aq_parent.aq_parent.getId()"
> Bye
> 
> -----Original Message-----
> From: marc lindahl [mailto:marc@bowery.com]
> Sent: mercredi 18 juillet 2001 14:21
> To: benoit.dominiak@makinacorpus.com; zope@zope.org
> Subject: Re: [Zope] Parents id of a specific object
> 
> 
> Try this().aq_parent.getId()