I have a TableForm that is displayed to the user and then validated with a
different method (using validators.Schema):
@turbogears.expose()
@turbogears.validate(form=user_profile_form, validators=UserProfileSchema())
@turbogears.error_handler(index)
def update_profile(self, **data):
user = identity.current.user
...
The form is displayed as usual:
${form.display(data, action='update_profile', submit_text='Update profile')}
When it is initially displayed submit button has correct label "Update
profile".
If user submits form and there is an error, the form is re-displayed but now
the label for some reason is reset to default "Submit Query". Viewing HTML
source shows that indeed, there were no custom value set:
<INPUT TYPE="submit" CLASS="submitbutton">
Is it a bug or I'm missing something?
Thanks,
Max.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---