#1076: Problem with CheckBox values
------------------------+---------------------------------------------------
 Reporter:  L33tminion  |       Owner:  anonymous
     Type:  defect      |      Status:  new      
 Priority:  normal      |   Milestone:           
Component:  Widgets     |     Version:  0.9a6    
 Severity:  normal      |    Keywords:           
------------------------+---------------------------------------------------
 My code is something like this (in the Kid template):
 {{{ ${my_form(action='<action>',value=dict(my_checkbox=True))} }}}

 When I load the page, the checkbox is not checked (and when I inspect the
 source, the relevant input field does not have the "CHECKED" attribute).

 On the other hand, loading my code from the command line and calling
 {{{my_form.render(value=dict(my_checkbox=True))}}} produces the expected
 output (with the checkbox marked as CHECKED).

 I can get the form to work as expected with code along the lines of
 {{{
 ${my_form(action='<action>',attrs=dict(my_checkbox=dict('checked'=True)))}
 }}}.
 However, that's messy, especially when I want the checked setting to be
 determined conditionally.

 I'm running Turbogears from trunk builds (r1710).

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1076>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" 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/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to