-----Original Message-----
From: Tom Scheidt <[EMAIL PROTECTED]>
To: Rik Hoekstra <[EMAIL PROTECTED]>
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
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )