Chris McDonough
2011-02-05 1e3082082f90680de629eed83dde1e2294bae47a
import HTTPNotFound; torturous spelling to not increase page length
1 files modified
3 ■■■■ changed files
pyramid/view.py 3 ●●●● patch | view | raw | blame | history
pyramid/view.py
@@ -271,8 +271,7 @@
       from pyramid.view import AppendSlashNotFoundViewFactory
       from pyramid.httpexceptions import HTTPNotFound
       def notfound_view(context, request):
           return HTTPNotFound('It aint there, stop trying!')
       def notfound_view(context, request): return HTTPNotFound('nope')
       custom_append_slash = AppendSlashNotFoundViewFactory(notfound_view)
       config.add_view(custom_append_slash, context=NotFound)