[Zope] depthfinder
Oleg Broytmann
phd@phd.russ.ru
Mon, 22 Nov 1999 17:44:12 +0000 (GMT)
On Mon, 22 Nov 1999, Ethan Fremen wrote:
> why doesn't this work? It fails if PARENTS[1] evaluates to false.
>
> <dtml-if "PARENTS[1]"><a href="<dtml-var
> "PARENTS[1].absolute_url()">">back</a></dtml-if>
>
> last lines of traceback:
>
> IndexError: list index out of range
The error message said it all - list index out of range. Read: there is
no PARENTS[1], only PARENTS[0].
Test "_.len(PARENTS) > 1"...
Oleg.
----
Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru
Programmers don't die, they just GOSUB without RETURN.