Curtis Maloney writes:
On Fri, 09 Jun 2000, Dieter Maurer wrote:
Curtis Maloney writes:
... dtml-unless does not work ...
... Seems that you make something wrong ...
It doesn't. Really. I'm certain of this. The key was not there, and yet the unless was not rendered. This is why I'm posting. It's not working as it should.
I guess I'm funny like that. I only post problems when they exist.
Sorry! But some problem reports are difficult to believe. I tried the following DTML-method with Zope 2.1.6: <dtml-var standard_html_header> <dtml-unless "0">should render<br></dtml-unless> <dtml-unless "1">should not render</dtml-unless> <dtml-unless "REQUEST.has_key('XXX')">should render<br></dtml-unless> <dtml-call "REQUEST.set('XXX',1)"> <dtml-unless "REQUEST.has_key('XXX')">should not render</dtml-unless> <dtml-var standard_html_footer> It worked as expected. No hint that "dtml-unless" could be faulty. Dieter