Error handling with Python + Pylons
I use formencode @validate decorator. It is possible to write custom validator for it but the problem with handling exceptions that occur in the model after validation still exists.
You could write custom action decorator similar to formencode one which will handle your model exceptions and populate c.form_errors.
What is the proper way to handle errors with Python + Pylons?
Say a user sets a password via a form that, when passed to a model class via the controller, throws an error because it's too short.  How should that error be handled so that an error message gets displayed on the web page rather than the entire script terminating to an error page?
Should there be any error handling in the controller itself?
I hope I am explaining myself clearly.
Thank you.