[Zope] Quick question about <dtml-if ...>

George M. Ellenburg george@ellenburg.org
Wed, 8 May 2002 08:00:43 -0400


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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,
- -- 
George M. Ellenburg <george@ellenburg.org>
<http://www.ellenburg.org/>
3 Years and counting of being 100% Microsoft-free; and much more productive.
Proud user of ASK <http://www.paganini.net/ask/>, the Active Spam Killer!
- ---
"Grub first, then ethics."
		-- Bertolt Brecht
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE82RNrFItzMEWZZdgRAlttAJwPMq3i6CHNetuL4+0/Ao3CTZ36RQCfazlw
6MaCzzcpvxh+14TjBVuigDo=
=hmKr
-----END PGP SIGNATURE-----