summaryrefslogtreecommitdiff
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
parentd3871b0f7919ee2006bff73676a42903ccd030fb (diff)
downloadpyramid-b0c812081d4a5d8b95229a21cfc9f893e99d83e5.tar.gz
pyramid-b0c812081d4a5d8b95229a21cfc9f893e99d83e5.tar.bz2
pyramid-b0c812081d4a5d8b95229a21cfc9f893e99d83e5.zip
Docs renderings. Prep for 0.9a6.
-rw-r--r--CHANGES.txt10
-rw-r--r--docs/tutorials/bfgwiki/authorization.rst12
-rw-r--r--setup.py2
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:
<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
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