I have something like
class MyFields(widgets.WidgetsList):
f1 = widgets.TextField('f1')
f2 = widgets.TextField('f2')
f3 = widgets.TextField('f3')
class MySchema(validators.Schema):
f1 = validators.UnicodeString(not_empty=True)
f2 = validators.UnicodeString(not_empty=True)
f3 = validators.UnicodeString(not_empty=True)
form = widgets.TableForm(fields=MyFields(), validator=MySchema())
Class Root(controllers.RootController):
...
@expose('.templates.my_template')
@validate(form=form)
@error_handler()
def display_form(self, **kw)
return dict(form=form, disabled_fields=['f2'])
When I call /display_form, I get the expected form with only f1 and f3.
But on validation, despite f2 is disabled, it goes through the
validation process which of course, fails.
What did I miss ? (Bug or feature ??)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---