Jonathan LaCour wrote:
I do have a question for you: how are you going to handle Exceptions and the ability to display nice errors with `flash`? Typically, I end up with a try:except:finally block where I `flash('some nice error message')` and do a `hub.rollback()`. I may have a different error message for different types of Exceptions...
I think "expected" exceptions (including redirects) should not roll back the transaction. Unexcepted exceptions (everything else should). However, you should be able to explicitly roll back or commit the transaction if the decorator doesn't do what you want.
So in your example you'd have to explicitly roll back the transaction if you didn't want your otherwise normal-looking response to cause a rollback.
-- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org

