[Zope] PARENTS

Rik Hoekstra rik.hoekstra@inghist.nl
Thu, 8 Jun 2000 22:51:35 +0200


-----Original Message-----
From: Tom Scheidt <tom@falsemirror.com>
To: Rik Hoekstra <rik.hoekstra@inghist.nl>
Date: donderdag 8 juni 2000 22:27
Subject: Re: [Zope] PARENTS


>The wierd thing is:
>
><dtml-with PARENTS> gives me the parent folder. (notice no quotes)

? strange

><dtml-with PARENTS[1]> gives me "Error Type: KeyError, Error Value:
>PARENTS[1]"
><dtml-with "PARENTS[1]"> gives me the parent folder.

>
>None give me the parent-parent folder.


which wasn't your original question. So use <dtml-with "PARENTS[2]">
PARENTS is a list of parent objects, from the nearest parent to the root.
The root is always the last element in the PARENTS (that is written as
PARENTS[-1])

hth

Rik