On Jan 18, 2007, at 6:00 PM, Alberto Valverde wrote:


On Jan 18, 2007, at 5:45 PM, Jim Steil wrote:

(...)



    @tg.validate(form=widgets.requisitionShpRcvFields)

    @tg.validate(form=widgets.requisitionOrderFields)

    @tg.validate(form=widgets.requisitionRequestFields)

    @tg.validate(form=widgets.requisitionNotesFields)

Hmmm, didn't notice this before... You should pass the form instance as the form argument, not the WidgesLists. Was that a typo?


The problem is that only the first two of them seem to do anything. If I put them in a different order, it will always validate the first two only.

Phew! Interesting way of using the validate decorator... :)

Are you stacking the 4 decorators to the same method?

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

Reply via email to