[Zope] Quick question about <dtml-if ...>
Harry Wilkinson
harryw@nipltd.com
Wed, 8 May 2002 13:05:45 +0100
I think you want "a == 3".
On Wednesday 08 May 2002 1:00 pm, George M. Ellenburg wrote:
> Thanks to everyone for pointing me in the right direction the other day.
>
> I have a quick question regarding <dtml-if ...> (I'm up to Chapter 4 in
> the Zope Book right now.)
>
> If I have a URI like this:
> GET /foo?a=3
>
> And the corresponding DTML contains:
>
> <dtml-if expr="a=3">
> <!-- Some Junk -->
> </dtml-if>
>
> ....Wouldn't this evaluate the Python expression?
>
> I've tried doing:
> <dtml-if a=3>
> <!-- -->
> </dtml-if>
>
> But received a syntax error.
>
> So I guess my question is, I thought the expr argument brought the DTML
> script outside the scope of the website. I'm not trying to call any
> external methods.
>
> Have I completely lost it now? ;-) (Don't answer that, please.)
>
> Regards,