Hello,
I am playing a bit to get comfortable with TG2 and stumbled over the
dynamic form validation wich I used in TG1 (http://docs.turbogears.org/
1.0/DynamicValidation) and which seems to be missing in TG2.
in TG1 it was possible to put a callable into the validate decorator
e.g.:
class MyCtrl(controllers.Controller):
def get_form(self):
return self.myform
@expose()
@validate(form = get_form)
def commit(forward_url = None, *args, **kw)
# do something with kw
raise redirect('/admin')
In TG2 there is nothing validated
Does anybody know how to achieve this behavior in TG2?
thanks
oliver
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---