From b0c812081d4a5d8b95229a21cfc9f893e99d83e5 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 30 May 2009 07:03:24 +0000 Subject: Docs renderings. Prep for 0.9a6. --- docs/tutorials/bfgwiki/authorization.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/tutorials/bfgwiki') 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: Logout Changing ``configure.zcml`` -~~~~~~~~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~~~~~~~~~~ Change your application's ``configure.zcml`` to add a slightly inscrutable ``utility`` stanza. This configures our login view to -- cgit v1.2.3