Michael Merickel
2013-10-21 7c96246eb6e14f5cd9414ddd61de089fe1f073d1
refs
author Michael Merickel <michael@digitalartefacts.com>
Monday, October 21, 2013 04:13 +0200
committer Michael Merickel <michael@digitalartefacts.com>
Monday, October 21, 2013 04:13 +0200
commit7c96246eb6e14f5cd9414ddd61de089fe1f073d1
tree 412cb17dd95e3521aa5d56e79df2751ca4fe207b tree | zip | gz
parent 78de0a0e5a9164e22ff07d02dae263a9ac38fcf5 view | diff
notfound and forbidden decorators were ignoring view_defaults

This could be fixed in other ways but the basic problem is that because
config.add_notfound_view and config.add_forbidden_view have actual
signatures instead of *args, **kwargs, the arguments are squashing the
view_defaults which are applied later on the call to config.add_view.

Basically, by the time the args get to config.add_view, they look
explicit when they are not.

fix #1173
2 files modified
62 ■■■■■ changed files
pyramid/config/views.py 2 ●●●●● diff | view | raw | blame | history
pyramid/tests/test_config/test_views.py 60 ●●●●● diff | view | raw | blame | history