[Zope] simple question about <!--#if expr="fieldname = 't'"-->

Donald Braman donald.braman@yale.edu
Wed, 21 Feb 2001 08:53:07 -0500


It worked brilliantly untill I changed my data type from text to bool. Now
it evaluates, but never as true.

My expression is: <dtml-if expr="bool_column == 't'">It is true</dtml-if>
I've also tried expr="bool_column is true", "bool_column = 't'",
"bool_column == 'true'", etc.

I've found the Python documentation on basic types and their operations, but
still can't figure out what I'm doing wrong.

Don

-----Original Message-----
From: tim@mr4.its.yale.edu [mailto:tim@mr4.its.yale.edu]On Behalf Of Tim
Cook
Sent: Tuesday, February 20, 2001 9:20 PM
To: Curtis Maloney
Cc: donald.braman@yale.edu; zope@zope.org
Subject: Re: [Zope] simple question about <!--#if expr="fieldname =
't'"-->


Curtis Maloney wrote:

> > Probably in the ZQR, and other places.
>
> More likely in the Python documentation, since expr="" is Python-land
stuff.
>

Quite true. I also noticed that Chris pointed out where I
misspoke. I find "Python Essential Reference", New Riders,
ISBN:0-7357-0901-7 particularly useful.

--
Tim Cook, President - FreePM,Inc.
http://www.FreePM.com Office: (901) 884-4126
New MedicationManager, Try it now at:
http://www.freepm.org:8080/FreePM