pyramid_tm 2.0 released

28 views
Skip to first unread message

Michael Merickel

unread,
Apr 11, 2017, 1:30:36 AM4/11/17
to Pylons
Hey folks, pyramid_tm 2.0 has been released. This is a semi-major change to the library which manages your transactions.

The major change is that the commit (or abort) now occurs OVER the exception view which means the transaction is still open during exception views. This means that:

1) You can now touch managed objects and perform database queries inside of exception views and they will affect the active transaction.

2) Any changes done in an exception view will be aborted unless done in a database session that is not joined to the request.tm transaction manager.

2) Any exceptions that occur due to commit failures will not be caught by default. This situation may improve in the future either within pyramid_tm itself or via pyramid_retry in the upcoming pyramid 1.9 release.

For some more information about how this may affect your application please check out this previous post to the mailing list: https://groups.google.com/d/msg/pylons-discuss/OOh5Hn0EWz8/ODkl5OXMAQAJ

The release documentation is available at http://docs.pylonsproject.org/projects/pyramid-tm/en/latest/ .

Thanks!

Pyramid core developers
Reply all
Reply to author
Forward
0 new messages