When rendering a checkbox with a value, the checked attribute it not
being set:
>>> from formencode import htmlfill
>>> htmlfill.render("""<input type="checkbox" name="cbox"
>>> value="1">""",{'cbox': True})
'<input type="checkbox" name="cbox" value="1">'
But when a value is not defined, the checked attribute is being set
correctly:
>>> htmlfill.render("""<input type="checkbox" name="cbox">""",{'cbox': True})
'<input type="checkbox" name="cbox" checked="checked">'
This is using FormEncode-1.2.3dev-py2.6.egg.
Thanks,
-Hollister
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.