[email protected] schrieb: > > hello friends, > > i am building a form based on the parameters to the controller, and i > need to also call the same controller as an error_handler. > how could the error_handler receive parameters based on the submitted > form values? > of course, reading the form values would be enough (instead of receiving > them as parameters).
I'm not entirely sure what you mean here - building a form on the fly isn't to great of an idea with current TW, as that is going to produce memleaks. However, what you can do is you can pass an object with a validate()-method to the @validate-decorator. Then in there, you can access tg.request.params to build the same form for validation. Diez --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

