summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-02-22 17:20:36 -0500
committerChris McDonough <chrism@plope.com>2012-02-22 17:20:36 -0500
commit90a4588329fe1fc7a9a1d6f1ae32544499bff0cf (patch)
treef41dd600c4514119076f8f1d7e004e092bb32859
parent59fa4a30da200b2302545be024d72ee38f8a35d9 (diff)
downloadpyramid-90a4588329fe1fc7a9a1d6f1ae32544499bff0cf.tar.gz
pyramid-90a4588329fe1fc7a9a1d6f1ae32544499bff0cf.tar.bz2
pyramid-90a4588329fe1fc7a9a1d6f1ae32544499bff0cf.zip
register notfound views with __no_permission_required__
-rw-r--r--TODO.txt2
-rw-r--r--pyramid/config/views.py3
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)