[Zope] boolean weirdness

vsbabu@vsbabu.org vsbabu@vsbabu.org
Thu, 2 May 2002 14:36:23 -0500


Hi,

We've a ZClass in which there is a property fund_size called boolean.

We had to use a radio group in the form like fund_size:boolean and values as 1 and 0 for true and false.

However, when we had to retrieve it for pre-checking the radio group according to the value in the property sheet, after some trial and error we found that 
<dtml-if "fund_size=='1'"> works instead of <dtml-if fund_size> as would've expected due to "boolean" property.

Took some time to get to the string  comparison...

$.02