Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1359 (closed enhancement: fixed)

Opened 11 years ago

Last modified 10 years ago

[PATCH] Add sqlalchemy transaction object to the request

Reported by: Janzert Owned by: anonymous
Priority: normal Milestone: 1.0.2
Component: SQLAlchemy Version: 1.0
Severity: normal Keywords:
Cc:

Description

As discussed  here add the SA transaction object created by turbogears to the cherrypy request. By not retaining a local variable reference to the transaction it also allows people to rollback, commit and start a new transaction within the controller.

Attachments

trans_in_request.diff Download (993 bytes) - added by Janzert 11 years ago.
Patch adding the SA transaction into the cherrypy.request object

Change History

Changed 11 years ago by Janzert

Patch adding the SA transaction into the cherrypy.request object

comment:1 Changed 11 years ago by alberto

  • Status changed from new to closed
  • Resolution set to fixed

Applied at [2880]. Thanks! :)

Alberto

Note: See TracTickets for help on using tickets.