On Feb 22, 2008, at 5:29 AM, Christoph Zwerschke wrote:
In TurboGears 1, requests are encapsulated between a session.begin()
and
session.commit() call (or session.rollback(), if there was an error).
Starting with SA 0.4.3, the commit() raises an exception if the
transaction has been
Michael Bayer schrieb:
thats fine...but also why cant you just say try: session.commit()
except: session.rollback(); raise ?
This would raise an error when the session is already inactive. I don't
want an error in this case. On the other hand, if I remove the raise
statement, then errors