[Zope] dtml-if Newbie Question
Russell Hires
rhires@earthlink.net
Tue, 5 Nov 2002 07:39:54 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Are you checking for a checkbox? Then you should do (for example),
<dtml-if expr="REQUEST.has_key('check_box')">
Checked!
</dtml-if>
Got this from Jim Penny.
I think the Zope book should include this type of situation, if it doesn't
already...
HTH
Russell
On Tuesday 05 November 2002 06:46 am, you wrote:
> Hi,
>
> From the 'Zope Book' the statement
>
> <dtml-if variable>
>
> means that 'if the..variable does not exist, then this condition is
> false'.
>
> I found that this is not true. When I tried using dtml-if to a
> non-existent variable, I got a 'key error'. So how do I check if the
> variable does not exist ?
>
> Tks.
>
> AL
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
- --
Linux -- the OS for the Renaissance Man
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9x7wbAqKGrvVshJQRAnftAJ41tJW2Kzajy7/dAsBl6G1C2jdAAgCfavsW
LVAUiMup6JT54VNYWYk8ESk=
=L9dB
-----END PGP SIGNATURE-----