CheckBox is similarly affected. The controller below with the same
template as before exhibits the behavior. It always comes up unchecked
on the initial page load. Comment out the validation decorator and it
works as expected.
TextFields work correctly.
============================
class TimesheetSearchFormFields(widgets.WidgetsList):
sort_reversed = CheckBox(validator=validators.Bool())
form = TableForm(fields=TimesheetSearchFormFields(),
submit_text='Submit')
class Root(controllers.RootController):
@expose(template="ssf.templates.welcome")
@validate(form=form)
@error_handler()
def browse(self,tg_errors=None, **kw):
return dict(form=form, values=dict(sort_reversed=True))
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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?hl=en
-~----------~----~----~----~------~----~------~--~---