From 6103bf8050466329aba930df000f042dbdff8efa Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 28 Nov 2009 01:54:50 +0000 Subject: Document the request-only calling convention as the default. --- docs/narr/hooks.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/narr/hooks.rst') 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 -- cgit v1.2.3