Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1076 (closed defect: wontfix)

Opened 13 years ago

Last modified 11 years ago

Problem with CheckBox values

Reported by: L33tminion Owned by: anonymous
Priority: normal Milestone:
Component: TG Widgets Version: 1.0b1
Severity: normal Keywords:
Cc:

Description

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).

Change History

comment:1 Changed 13 years ago by jorge.vargas

  • Milestone set to 1.0

comment:2 Changed 12 years ago by alberto

  • Milestone changed from 1.0 to 1.1

comment:3 Changed 12 years ago by jorge.vargas

  • Version changed from 0.9a6 to trunk

is this still present?

comment:4 Changed 12 years ago by alberto

  • Milestone changed from 1.1 to __unclassified__

Batch moved into unclassified from 1.1 to properly track progress on the later

comment:5 Changed 11 years ago by Chris Arndt

  • Status changed from new to closed
  • Version changed from trunk to 1.0b1
  • Resolution set to wontfix
  • Milestone __unclassified__ deleted

That's the way the Widget API for CompoundWidgets works.

See  http://docs.turbogears.org/1.0/RoughDocs/WidgetTips for more information.

ToscaWidgets has a better syntax for this.

Note: See TracTickets for help on using tickets.