From 89e011e72ae8bbec1e6d91cfbe7be83e2352d6fd Mon Sep 17 00:00:00 2001 From: Patricio Paez Date: Fri, 6 Apr 2012 17:51:53 -0500 Subject: Added first level sections, fixed route in the summary --- docs/tutorials/wiki2/authorization.rst | 10 ++++++++-- docs/tutorials/wiki2/design.rst | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/tutorials/wiki2/authorization.rst b/docs/tutorials/wiki2/authorization.rst index 6549418da..14b075ce6 100644 --- a/docs/tutorials/wiki2/authorization.rst +++ b/docs/tutorials/wiki2/authorization.rst @@ -40,6 +40,9 @@ The source code for this tutorial stage can be browsed at `http://github.com/Pylons/pyramid/tree/1.3-branch/docs/tutorials/wiki2/src/authorization/ `_. +Access Control +-------------- + Add users and groups ~~~~~~~~~~~~~~~~~~~~ @@ -180,6 +183,9 @@ permission at the time of the request may invoke those two views. We are done with the changes needed to control access. The changes that follow will add the login and logout feature. +Login, Logout +------------- + Add routes for /login and /logout ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Go back to ``tutorial/tutorial/__init__.py`` and add these two @@ -303,7 +309,7 @@ the logout view. The above element will not be included if ``logged_in`` is ``None``, such as when a user is not authenticated. Seeing Our Changes -~~~~~~~~~~~~~~~~~~ +------------------ Our ``tutorial/tutorial/__init__.py`` will look something like this when we're done: @@ -344,7 +350,7 @@ something like this when we're done: (Only the highlighted lines need to be added.) Viewing the Application in a Browser -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +------------------------------------ We can finally examine our application in a browser (See :ref:`wiki2-start-the-application`). Launch a browser and visit diff --git a/docs/tutorials/wiki2/design.rst b/docs/tutorials/wiki2/design.rst index 1ff000549..4481153a3 100644 --- a/docs/tutorials/wiki2/design.rst +++ b/docs/tutorials/wiki2/design.rst @@ -87,7 +87,7 @@ listed in the following table: | | | | | | | | | | | | +----------------------+-----------------------+-------------+------------+------------+ -| /edit_page/PageName | Display edit form | edit_page | edit.pt | edit | +| /PageName/edit_page | Display edit form | edit_page | edit.pt | edit | | | with existing | | | | | | content. | | | | | | | | | | -- cgit v1.2.3