diff options
| author | Patricio Paez <pp@pp.com.mx> | 2012-04-07 10:51:58 -0500 |
|---|---|---|
| committer | Patricio Paez <pp@pp.com.mx> | 2012-04-07 10:51:58 -0500 |
| commit | a435dba13c6bc0fd0199d06fdbb3e43a4f1263c7 (patch) | |
| tree | 5a93991afcc5f4b082cd738f2dd7bc962fe78859 /docs/tutorials/wiki2/authorization.rst | |
| parent | eb6d456db87d81a9041aefce7e963be23f200851 (diff) | |
| download | pyramid-a435dba13c6bc0fd0199d06fdbb3e43a4f1263c7.tar.gz pyramid-a435dba13c6bc0fd0199d06fdbb3e43a4f1263c7.tar.bz2 pyramid-a435dba13c6bc0fd0199d06fdbb3e43a4f1263c7.zip | |
Normalize Authorization in both tutorials 1
- Sync the content of the introduction and the
Viewing the Application in a Browser sections
- Sync the section structure
Diffstat (limited to 'docs/tutorials/wiki2/authorization.rst')
| -rw-r--r-- | docs/tutorials/wiki2/authorization.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/tutorials/wiki2/authorization.rst b/docs/tutorials/wiki2/authorization.rst index 14b075ce6..9f2ffe9e1 100644 --- a/docs/tutorials/wiki2/authorization.rst +++ b/docs/tutorials/wiki2/authorization.rst @@ -8,9 +8,9 @@ Adding Authorization :term:`authorization`. We'll make use of both features to provide security to our application. Our application currently allows anyone with access to the server to view, edit, and add pages to our wiki. We'll change that -to allow only people who possess a specific username (`editor`) -to add and edit wiki pages but we'll continue allowing anyone with access to -the server to view pages. +to allow only people who are members of a *group* named ``group:editors`` +to add and edit wiki pages but we'll continue allowing +anyone with access to the server to view pages. We will also add a login page and a logout link on all the pages. The login page will be shown when a user is denied @@ -196,8 +196,8 @@ routes: :linenos: :language: python -Adding Login and Logout Views -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Add Login and Logout Views +~~~~~~~~~~~~~~~~~~~~~~~~~~ To our ``views.py`` we'll add a ``login`` view callable which renders a login form and processes the post from the login form, checking credentials. @@ -245,8 +245,8 @@ authorized to perform. which associates it with the ``logout`` route. This makes it match when we visit ``/logout``. -Adding the ``login.pt`` Template -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Add the ``login.pt`` Template +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Create ``tutorial/tutorial/templates/login.pt`` with the following content: |
