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. --- CHANGES.txt | 10 ++++++++-- docs/tutorials/bfgwiki/authorization.rst | 12 ++++++------ setup.py | 2 +- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 702045c0d..95fa3dbe8 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,11 @@ -Next release -============ +0.9a6 (2009-05-29) +================== + +Documentation +------------- + +- Changed "BFG Wiki" tutorial to use AuthTktAuthenticationPolicy + rather than repoze.who. Features -------- 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 diff --git a/setup.py b/setup.py index 124ff4661..987f9d057 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ # ############################################################################## -__version__ = '0.9a5' +__version__ = '0.9a6' import os -- cgit v1.2.3