summaryrefslogtreecommitdiff
path: root/docs/narr/hooks.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-11-28 01:54:50 +0000
committerChris McDonough <chrism@agendaless.com>2009-11-28 01:54:50 +0000
commit6103bf8050466329aba930df000f042dbdff8efa (patch)
tree1dd16982214ff634d7c46082eb86468bf24a73b9 /docs/narr/hooks.rst
parent0970432b72d8f4360b69dc58223ea0725d747d36 (diff)
downloadpyramid-6103bf8050466329aba930df000f042dbdff8efa.tar.gz
pyramid-6103bf8050466329aba930df000f042dbdff8efa.tar.bz2
pyramid-6103bf8050466329aba930df000f042dbdff8efa.zip
Document the request-only calling convention as the default.
Diffstat (limited to 'docs/narr/hooks.rst')
-rw-r--r--docs/narr/hooks.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst
index 8f6e0f62f..28a76c018 100644
--- a/docs/narr/hooks.rst
+++ b/docs/narr/hooks.rst
@@ -95,7 +95,7 @@ Here's some sample code that implements a minimal NotFound view:
from webob.exc import HTTPNotFound
- def notfound_view(context, request):
+ def notfound_view(request):
return HTTPNotFound()
.. note:: When a NotFound view is invoked, it is passed a request.
@@ -203,7 +203,7 @@ Here's some sample code that implements a minimal forbidden view:
from repoze.bfg.chameleon_zpt import render_template_to_response
- def forbidden_view(context, request):
+ def forbidden_view(request):
return render_template_to_response('templates/login_form.pt')
.. note:: When an forbidden view is invoked, it is passed