18 Jul
2001
18 Jul
'01
1:21 p.m.
Try this().aq_parent.getId()
From: "Benoit DOMINIAK" <koubonline@hotmail.com> Reply-To: benoit.dominiak@makinacorpus.com Date: Wed, 18 Jul 2001 15:02:43 +0200 To: zope@zope.org Subject: [Zope] Parents id of a specific object
Hi, Is there a way to get the id of an object's parent (container) ? I've tryed : <dtml-with "_.getitem(object)"> <dtml-var "PARENTS[0].getId()"> </dtml-with>
but I always get the id of the ancestor of the published object. Just like the Zope book said !!
Any idea ?