[Zope] Simple dtml-unless problem

Oleg Broytmann phd@mail2.phd.pp.ru
Wed, 13 Sep 2000 12:24:29 +0000 (GMT)


On Wed, 13 Sep 2000, Tim Hicks wrote:
> >    Sometimes id is string, sometimes it is a function.
> >
> > <dtml-unless "_['id'] == 'index_html'">
> 
> Thanks very much guys.  _['id'] fixed it.

   I hope you understand that I forced Zope to call the id() function, but
only if it is function. Else _['id'] just returns the id string.

Oleg.
---- 
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.