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
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to