[Zope] Testing multiple values for existance - still
Dieter Maurer
dieter@handshake.de
Thu, 27 Sep 2001 23:59:03 +0200 (CEST)
Oliver Sturm writes:
> > The section following the one quoted above explained
> > how "foo" is interpreted in a boolean context
> > (such as the "dtml-if").
>
> The section you are referring to details how "foo" is interpreted in a
> boolean context in the Python language. I was asking how the expression
> "foo" is interpreted in <dtml-if foo> (not <dtml-if "foo">),
I had also this answered already!
<dtml-if XXX>
is equivalent to
<dtml-if expr="_.has_key('XXX') and XXX">
You find this (and lots of other facts) in
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
Dieter