Hey folks, this is a small but important release. In pyramid_tm 2.0 we
moved the tween OVER the EXCVIEW tween - this meant that any exceptions
raised by commit/abort would no longer be caught by your exception views.
This release fixes that (when running on Pyramid 1.7+) by explicitly
rendering exception views when commit/abort fail. It also adds several
improvements / suggestions to the documentation on how to use the tm_active
view predicate in order to control when certain exception views are used.

Pyramid 1.9 is just around the corner and it has an explicit goal of making
it easier to render exceptions views in more cases - while relaxing
guarantees on when those views may be rendered. The EXCVIEW tween is just
one place where they could be invoked. Importantly, this means that
exception views need to be careful about their expectations. Feedback here
is very useful and I'll try harder to explain this in the docs. A small
diagram is shown in
https://gist.github.com/mmerickel/2e83f4af6c7d5eae34947b8f1f075f61 which
may help understanding where things are going.

Full change history:
http://docs.pylonsproject.org/projects/pyramid-tm/en/latest/#changes

You can install it via PyPI:

  pip install pyramid_tm==2.1

Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/pyramid_tm/issues

Thanks!

- Pylons Project core developers

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAKdhhwEu9Ko8%2BP%3DSYisQ9%2B50LgTe%2BaCvgyhbtXmoQWCbwpEBYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to