[Zope] Existence and truth
Paul Winkler
pw_lists at slinkp.com
Tue Nov 28 17:38:10 EST 2006
On Tue, Nov 28, 2006 at 10:24:51PM +0000, Mark Barratt wrote:
> The radio inputs return name="listed" and value 0 or 1
>
> This works OK, but in the radio input code,
>
> tal:attributes="checked python:test(listed,'checked',None);
>
> *always* returns 'checked'
(snip)
> So what basic fact/knowledge am I missing?
This kind of thing is usually a mistaken type assumption.
I bet your radiobutton is setting it to "0" rather than 0.
--
Paul Winkler
http://www.slinkp.com
More information about the Zope
mailing list