t = context.session_context.current.create_transaction() try: ... (some db or models operations and flush() invocations) t.commit() except: t.rollback() ... (optionally, raise some user or system exception)
Jose F. On 7 sep, 00:38, Jose Figueras <[EMAIL PROTECTED]> wrote: > In one of my controller I need to use SQLAlchemy transactions. > > How must I proceed? > > Where's the transaction object? > > Regards, > Jose F. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
