diff options
| author | Chris McDonough <chrism@plope.com> | 2014-04-07 09:55:11 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2014-04-07 09:55:11 -0400 |
| commit | bcf18220be9c21ff4b1af50f45b90aadfa7820f5 (patch) | |
| tree | 99232b448c08c5689117cb84c025efb349b50b0f /docs/tutorials/wiki2 | |
| parent | d7b647d27ebde9bc8203629b651e69d6e7ac7c38 (diff) | |
| parent | 32200c3af84c352c066eb2c402496305375912e4 (diff) | |
| download | pyramid-bcf18220be9c21ff4b1af50f45b90aadfa7820f5.tar.gz pyramid-bcf18220be9c21ff4b1af50f45b90aadfa7820f5.tar.bz2 pyramid-bcf18220be9c21ff4b1af50f45b90aadfa7820f5.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/tutorials/wiki2')
| -rw-r--r-- | docs/tutorials/wiki2/authorization.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/tutorials/wiki2/authorization.rst b/docs/tutorials/wiki2/authorization.rst index 1e5d0dcbf..2e35574fd 100644 --- a/docs/tutorials/wiki2/authorization.rst +++ b/docs/tutorials/wiki2/authorization.rst @@ -207,6 +207,21 @@ routes: :linenos: :language: python +.. note:: The preceding lines must be added *before* the following + ``view_page`` route definition: + + .. literalinclude:: src/authorization/tutorial/__init__.py + :lines: 32 + :linenos: + :language: python + + This is because ``view_page``'s route definition uses a catch-all + "replacement marker" ``/{pagename}`` (see :ref:`route_pattern_syntax`) + which will catch any route that was not already caught by any + route listed above it in ``__init__.py``. Hence, for ``login`` and + ``logout`` views to have the opportunity of being matched + (or "caught"), they must be above ``/{pagename}``. + Add Login and Logout Views ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
