Chris McDonough
2012-02-22 90a4588329fe1fc7a9a1d6f1ae32544499bff0cf
register notfound views with __no_permission_required__
2 files modified
5 ■■■■■ changed files
TODO.txt 2 ●●●●● patch | view | raw | blame | history
pyramid/config/views.py 3 ●●●● patch | view | raw | blame | history
TODO.txt
@@ -7,8 +7,6 @@
- Fix scaffolds and tutorials to use notfound_view_config rather than
  view_config.
- Add __no_permission_required__ to see notfound views.
Nice-to-Have
------------
pyramid/config/views.py
@@ -1414,7 +1414,8 @@
            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)