summaryrefslogtreecommitdiff
path: root/docs/tutorials
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2014-04-08 09:08:02 -0400
committerChris McDonough <chrism@plope.com>2014-04-08 09:08:02 -0400
commitecb376a132034bd4ccfe1daa69d4828699e9028d (patch)
tree912b74c4dc61370bb46487f5c52fc705c70e150e /docs/tutorials
parente012af904feb15f20a134f22eaeeb61bd9d56cc8 (diff)
parentbcf18220be9c21ff4b1af50f45b90aadfa7820f5 (diff)
downloadpyramid-ecb376a132034bd4ccfe1daa69d4828699e9028d.tar.gz
pyramid-ecb376a132034bd4ccfe1daa69d4828699e9028d.tar.bz2
pyramid-ecb376a132034bd4ccfe1daa69d4828699e9028d.zip
fix merge conflict while merging master to 1.5 branch
Diffstat (limited to 'docs/tutorials')
-rw-r--r--docs/tutorials/wiki2/authorization.rst15
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
~~~~~~~~~~~~~~~~~~~~~~~~~~