TurboGears uses a transaction manager whose default behaviour is to
commit if the function (view) is successful or to rollback if the
function fails (if it throws an exception or returns an http error
code), you can also tap the manager and commit/abort transactions
explicitely by importing the module transaction:

impor transaction

class MyController(BaseController):
    def index(self):
        # Your code here
        transaction.commit()

For more info (albeit a bit incomplete) check the docs:

http://www.turbogears.org/2.2/docs/main/Config/SQLAlchemy.html

Regards,
Carlos Daniel Ruvalcaba Valenzuela

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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?hl=en.

Reply via email to