[Zope] Parents id of a specific object

Joel Burton jburton@scw.org
Thu, 19 Jul 2001 19:03:35 -0400 (EDT)


On Wed, 18 Jul 2001, Benoit DOMINIAK wrote:

> 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>

PARENTS is part of the request, not part of the current object.

aq_parent.getId() will get what you want

hth,
-- 
Joel Burton   <jburton@scw.org>
Director of Information Systems, Support Center of Washington