[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Zope] boolean weirdness
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
_______________________________________________
Zope maillist - Zope@xxxxxxxx
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 )
This mailing list archive is a service of Copilotco.