Hi

I'm completely new here and still beginner as far as TG is concerned.
I've red tons of posts but I still can't find the solution.

I try to write little app using TG. One of the most important part is
form which displays student's data from database. I pass hashcode as
parameter in url, read data from database, fill fields using these
data. Almost every field has it's own validator.
Form has two submit buttons: reject and accept. I inherited form
TableForm and overrode template to display them. Buttons has different
names so I am able to find out which was pressed.

I would like to perform validation after pressing one button but avoid
it after pressing another.

I've tried using two @error_handler decorators, one called with rules
parameter, but I don't know if I can check at this level which button
name was passed.

I'll put my code tomorrow to make it clearer but maybe You could say a
word or show a direction.

Thanks.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to