From 90a4588329fe1fc7a9a1d6f1ae32544499bff0cf Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 22 Feb 2012 17:20:36 -0500 Subject: register notfound views with __no_permission_required__ --- TODO.txt | 2 -- pyramid/config/views.py | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/TODO.txt b/TODO.txt index 56ddc384c..20a677bea 100644 --- a/TODO.txt +++ b/TODO.txt @@ -7,8 +7,6 @@ Must-Have - Fix scaffolds and tutorials to use notfound_view_config rather than view_config. -- Add __no_permission_required__ to see notfound views. - Nice-to-Have ------------ diff --git a/pyramid/config/views.py b/pyramid/config/views.py index 7f6a37cc4..9bd7b4b50 100644 --- a/pyramid/config/views.py +++ b/pyramid/config/views.py @@ -1414,7 +1414,8 @@ class ViewsConfiguratorMixin(object): decorator=decorator, mapper=mapper, match_param=match_param, - route_name=route_name + route_name=route_name, + permission=NO_PERMISSION_REQUIRED, ) if append_slash: view = self._derive_view(view, attr=attr, renderer=renderer) -- cgit v1.2.3