22 Nov
1999
22 Nov
'99
5:44 p.m.
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.