Michael Merickel
2017-06-15 8226534e173df938c533ebab6db8cd08a60901b9
refs
author Michael Merickel <michael@merickel.org>
Thursday, June 15, 2017 03:58 +0200
committer Michael Merickel <michael@merickel.org>
Sunday, June 18, 2017 06:53 +0200
commit8226534e173df938c533ebab6db8cd08a60901b9
tree f54365e7818507cba5cec7e14b1bd22ca025af72 tree | zip | gz
parent 2ea943e690d8f09d07c13ca4d513cfafbfba33f1 view | diff
add a router.request_context context manager

the request context is to be used by execution policies to push/pop
threadlocals and access the created request
4 files modified
227 ■■■■■ changed files
pyramid/interfaces.py 50 ●●●● diff | view | raw | blame | history
pyramid/router.py 81 ●●●● diff | view | raw | blame | history
pyramid/tests/test_router.py 69 ●●●●● diff | view | raw | blame | history
pyramid/threadlocal.py 27 ●●●●● diff | view | raw | blame | history