summaryrefslogtreecommitdiff
path: root/docs/tutorials
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-05-30 07:03:24 +0000
committerChris McDonough <chrism@agendaless.com>2009-05-30 07:03:24 +0000
commitb0c812081d4a5d8b95229a21cfc9f893e99d83e5 (patch)
treedef659e0a025e09b1fce2ba1b8bde85d0a30f064 /docs/tutorials
parentd3871b0f7919ee2006bff73676a42903ccd030fb (diff)
downloadpyramid-b0c812081d4a5d8b95229a21cfc9f893e99d83e5.tar.gz
pyramid-b0c812081d4a5d8b95229a21cfc9f893e99d83e5.tar.bz2
pyramid-b0c812081d4a5d8b95229a21cfc9f893e99d83e5.zip
Docs renderings. Prep for 0.9a6.
Diffstat (limited to 'docs/tutorials')
-rw-r--r--docs/tutorials/bfgwiki/authorization.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/tutorials/bfgwiki/authorization.rst b/docs/tutorials/bfgwiki/authorization.rst
index f52312c14..d69bec8a7 100644
--- a/docs/tutorials/bfgwiki/authorization.rst
+++ b/docs/tutorials/bfgwiki/authorization.rst
@@ -54,8 +54,8 @@ to it. This view will clear the credentials of the logged in user and
redirect back to the front page.
We'll add a different file (for presentation convenience) to add login
-and logout views. Add a file to your application in the same
-directory as ``login.py`` with the following content:
+and logout views. Add a file named ``login.py`` to your application
+(in the same directory as ``views.py``) with the following content:
.. literalinclude:: src/authorization/tutorial/login.py
:linenos:
@@ -65,8 +65,8 @@ Changing Existing Views
~~~~~~~~~~~~~~~~~~~~~~~
Then we need to change each opf our ``view_page``, ``edit_page`` and
-``add_page`` views to pass a "logged in" parameter into its template.
-We'll add something like this to each view body:
+``add_page`` views in ``views.py`` to pass a "logged in" parameter
+into its template. We'll add something like this to each view body:
.. code-block:: python
:linenos:
@@ -97,7 +97,7 @@ referred to within the login view we just added to ``login.py``.
:language: xml
Change ``view.pt`` and ``edit.pt``
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
We'll also need to change our ``edit.pt`` and ``view.pt`` templates to
display a "Logout" link if someone is logged in. This link will
@@ -112,7 +112,7 @@ class="main_content">`` div:
<span tal:condition="logged_in"><a href="${request.application_url}/logout">Logout</a></span>
Changing ``configure.zcml``
-~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
Change your application's ``configure.zcml`` to add a slightly
inscrutable ``utility`` stanza. This configures our login view to