Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
Ť Groups Home
Message from discussion htmlfill not setting checkbox default
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Piotr Kęplicz  
View profile  
 More options Oct 11 2010, 12:54 pm
From: Piotr Kęplicz <kepl...@cmc.pl>
Date: Mon, 11 Oct 2010 18:54:03 +0200
Local: Mon, Oct 11 2010 12:54 pm
Subject: Re: htmlfill not setting checkbox default
Hollister, poniedziałek 11 października 2010 18:36:

> 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">'

I'd say it's correct. Input value is "1", not True.

>>> htmlfill.render("""<input type="checkbox" name="cbox" value="1">""",

{'cbox': 1})
'<input type="checkbox" name="cbox" value="1" checked="checked">'

.pk.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.