summaryrefslogtreecommitdiff
path: root/docs/tutorials/bfgwiki/authorization.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-10-10 01:03:53 +0000
committerChris McDonough <chrism@agendaless.com>2009-10-10 01:03:53 +0000
commit820508eb8200692cc8b1510caa19903d2af79c5a (patch)
tree3f562b5a07ceba4fee0dbb60ba9144417d2de8fa /docs/tutorials/bfgwiki/authorization.rst
parent9bbaa8a0be555560d8f1dad7bcf10bb64c500097 (diff)
downloadpyramid-820508eb8200692cc8b1510caa19903d2af79c5a.tar.gz
pyramid-820508eb8200692cc8b1510caa19903d2af79c5a.tar.bz2
pyramid-820508eb8200692cc8b1510caa19903d2af79c5a.zip
Convert bfgwiki to use renderers.
Diffstat (limited to 'docs/tutorials/bfgwiki/authorization.rst')
-rw-r--r--docs/tutorials/bfgwiki/authorization.rst14
1 files changed, 6 insertions, 8 deletions
diff --git a/docs/tutorials/bfgwiki/authorization.rst b/docs/tutorials/bfgwiki/authorization.rst
index 444a0e5db..9944f69e0 100644
--- a/docs/tutorials/bfgwiki/authorization.rst
+++ b/docs/tutorials/bfgwiki/authorization.rst
@@ -83,19 +83,17 @@ 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``
-within each view to pass the `resulting `logged_in`` value to the
+We'll then change the return value of each view that has an associated
+``renderer`` 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 = context,
- content = content,
- logged_in = logged_in,
- edit_url = edit_url)
+ return dict(page = context,
+ content = content,
+ logged_in = logged_in,
+ edit_url = edit_url)
Adding the ``login.pt`` Template
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~