summaryrefslogtreecommitdiff
path: root/docs/tutorials/bfgwiki2/authorization.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-10-10 05:06:45 +0000
committerChris McDonough <chrism@agendaless.com>2009-10-10 05:06:45 +0000
commit210c0e43990e387bfafc38467ef09e5097c0daaf (patch)
tree88df0616192d52e947835448334e1e8fbb09c44c /docs/tutorials/bfgwiki2/authorization.rst
parentb1909e621396beebc801b1cdadb568d452fdc0c7 (diff)
downloadpyramid-210c0e43990e387bfafc38467ef09e5097c0daaf.tar.gz
pyramid-210c0e43990e387bfafc38467ef09e5097c0daaf.tar.bz2
pyramid-210c0e43990e387bfafc38467ef09e5097c0daaf.zip
Move to renderers.
Diffstat (limited to 'docs/tutorials/bfgwiki2/authorization.rst')
-rw-r--r--docs/tutorials/bfgwiki2/authorization.rst14
1 files changed, 6 insertions, 8 deletions
diff --git a/docs/tutorials/bfgwiki2/authorization.rst b/docs/tutorials/bfgwiki2/authorization.rst
index d48236d0a..e158b3e87 100644
--- a/docs/tutorials/bfgwiki2/authorization.rst
+++ b/docs/tutorials/bfgwiki2/authorization.rst
@@ -143,18 +143,16 @@ into its template. We'll add something like this to each view body:
logged_in = authenticated_userid(request)
-We'll then change the return value of ``render_template_to_response``
-to pass the `resulting `logged_in`` value to the template, e.g.:
+We'll then change the return value of these views to pass the
+`resulting `logged_in`` value to the template, e.g.:
.. code-block:: python
:linenos:
- return render_template_to_response('templates/view.pt',
- request = request,
- page = page,
- content = content,
- logged_in = logged_in,
- edit_url = edit_url)
+ return dict(page = page,
+ content = content,
+ logged_in = logged_in,
+ edit_url = edit_url)
Adding the ``login.pt`` Template
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~