diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-12-28 04:12:10 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-12-28 04:12:10 +0000 |
| commit | 125e9746a5da925243dabf67b2609b556bb9215a (patch) | |
| tree | 2ef52dadcf40f840586293f8cf66e9a11d0f04b0 /docs/tutorials/bfgwiki2/authorization.rst | |
| parent | 48ed96bf621128adf59b225f1c8e33af44bc0594 (diff) | |
| download | pyramid-125e9746a5da925243dabf67b2609b556bb9215a.tar.gz pyramid-125e9746a5da925243dabf67b2609b556bb9215a.tar.bz2 pyramid-125e9746a5da925243dabf67b2609b556bb9215a.zip | |
Adjust for 7.5x9.25in output.
Diffstat (limited to 'docs/tutorials/bfgwiki2/authorization.rst')
| -rw-r--r-- | docs/tutorials/bfgwiki2/authorization.rst | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/docs/tutorials/bfgwiki2/authorization.rst b/docs/tutorials/bfgwiki2/authorization.rst index df93cb454..3f0aed342 100644 --- a/docs/tutorials/bfgwiki2/authorization.rst +++ b/docs/tutorials/bfgwiki2/authorization.rst @@ -182,7 +182,9 @@ class="main_content">`` div: .. code-block:: xml :linenos: - <span tal:condition="logged_in"><a href="${request.application_url}/logout">Logout</a></span> + <span tal:condition="logged_in"> + <a href="${request.application_url}/logout">Logout</a> + </span> Viewing the Application in a Browser ------------------------------------ @@ -190,31 +192,27 @@ Viewing the Application in a Browser We can finally examine our application in a browser. The views we'll try are as follows: -- Visiting `http://localhost:6543/ <http://localhost:6543/>`_ in a - browser invokes the ``view_wiki`` view. This always redirects to - the ``view_page`` view of the FrontPage page object. It is - executable by any user. +- Visiting ``http://localhost:6543/`` in a browser invokes the + ``view_wiki`` view. This always redirects to the ``view_page`` view + of the FrontPage page object. It is executable by any user. -- Visiting `http://localhost:6543/FrontPage - <http://localhost:6543/FrontPage>`_ in a browser invokes the - ``view_page`` view of the FrontPage page object. +- Visiting ``http://localhost:6543/FrontPage`` in a browser invokes + the ``view_page`` view of the FrontPage page object. -- Visiting `http://localhost:6543/FrontPage/edit_page - <http://localhost:6543/FrontPage/edit_page>`_ in a browser invokes - the edit view for the FrontPage object. It is executable by only +- Visiting ``http://localhost:6543/FrontPage/edit_page`` in a browser + invokes the edit view for the FrontPage object. It is executable by + only the ``editor`` user. If a different user (or the anonymous + user) invokes it, a login form will be displayed. Supplying the + credentials with the username ``editor``, password ``editor`` will + display the edit page form. + +- Visiting ``http://localhost:6543/add_page/SomePageName`` in a + browser invokes the add view for a page. It is executable by only the ``editor`` user. If a different user (or the anonymous user) invokes it, a login form will be displayed. Supplying the credentials with the username ``editor``, password ``editor`` will display the edit page form. -- Visiting `http://localhost:6543/add_page/SomePageName - <http://localhost:6543/add_page/SomePageName>`_ in a browser invokes - the add view for a page. It is executable by only the ``editor`` - user. If a different user (or the anonymous user) invokes it, a - login form will be displayed. Supplying the credentials with the - username ``editor``, password ``editor`` will display the edit page - form. - Seeing Our Changes To ``views.py`` and our Templates ---------------------------------------------------- |
