Mark Ramm wrote: >>> - validation and error handling, both with decorator and within a method >>> in the case of unknown form length > > We have a validation decorator, but Alberto has suggested changing it, > and I agree with that his plan is probably the best way to do this. > Rick Copland has also suggested doing validation in middleware, which > to me seems a bit more complicated, but it's certainly another > possibility.
OMG! the sole idea of doing validation in middleware sends shivers down my spine... ;) For example, how could we pass arguments to the middleware on a per-controller-method basis (to define the validator, the error handler, etc...)? This idea immediately reminded me of this worthwhile read: http://dirtsimple.org/2007/02/wsgi-middleware-considered-harmful.html Alberto --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
