Michael Merickel
2016-04-27 2160ce9152944393caf34113e49982481385e27a
refs
author Michael Merickel <michael@merickel.org>
Wednesday, April 27, 2016 00:49 +0200
committer Michael Merickel <michael@merickel.org>
Wednesday, April 27, 2016 00:49 +0200
commit2160ce9152944393caf34113e49982481385e27a
tree 9a55c0295b5e7b80f1cfb330c5638a1141cb77b7 tree | zip | gz
parent f2bc0e39cabb2f234ea622b2ebdd0b8eac5cea32 view | diff
do not enforce default permissions on exception views

- this normalizes the behavior to work similar to require_csrf

- if an explicit permission= is set on the view it will still be enforced,
this just affects a default permission via config.set_default_permission

- permission=NO_PERMISSION_REQUIRED was already forced on for notfound
and forbidden views, this just helps out with other exception views
4 files modified
100 ■■■■ changed files
pyramid/config/views.py 18 ●●●●● diff | view | raw | blame | history
pyramid/interfaces.py 4 ●●●● diff | view | raw | blame | history
pyramid/tests/test_viewderivers.py 57 ●●●●● diff | view | raw | blame | history
pyramid/viewderivers.py 21 ●●●●● diff | view | raw | blame | history