Michael Merickel
2017-05-04 3b886e6f39b1c89e78566bce2edacef9bee6d177
refs
author Michael Merickel <michael@merickel.org>
Thursday, May 4, 2017 05:59 +0200
committer Michael Merickel <michael@merickel.org>
Thursday, May 4, 2017 05:59 +0200
commit3b886e6f39b1c89e78566bce2edacef9bee6d177
tree 9e2da994ed18dd4f032c7673eb610bfa9c69c7ec tree | zip | gz
parent 3213e20f58d1a0b339e9d5bf9378ec54593624c7 view | diff
normalize excview tween to use ``request.invoke_exception_view``

``request.exception`` and ``request.exc_info`` are set to the
exception used to render the response but they are reset to their
original values if no response could be rendered

minor incompatibility in that ``request.response`` is restored after the
excview tween but should not be an issue because a response is returned
thus request.response should be ignored by anyone who cares.
3 files modified
74 ■■■■■ changed files
pyramid/tests/test_view.py 6 ●●●● diff | view | raw | blame | history
pyramid/tweens.py 47 ●●●● diff | view | raw | blame | history
pyramid/view.py 21 ●●●● diff | view | raw | blame | history