Re: [Zope] Parents id of a specific object
18 Jul
2001
18 Jul
'01
5:23 p.m.
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()
9028
Age (days ago)
9028
Last active (days ago)
0 comments
1 participants
participants (1)
-
marc lindahl