summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2014-03-21 06:19:27 -0700
committerSteve Piercy <web@stevepiercy.com>2014-03-21 06:19:27 -0700
commitcf4023ad25637720ed5ccd1e7cdffd24da4c47cb (patch)
tree4d826a8df4e83d43cd8226a0c6d874b237f831f1
parentda52daa6dea1483177321ff77ba38fe51a3fc213 (diff)
downloadpyramid-cf4023ad25637720ed5ccd1e7cdffd24da4c47cb.tar.gz
pyramid-cf4023ad25637720ed5ccd1e7cdffd24da4c47cb.tar.bz2
pyramid-cf4023ad25637720ed5ccd1e7cdffd24da4c47cb.zip
- correct bad .rst syntax
-rw-r--r--docs/tutorials/wiki2/authorization.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/tutorials/wiki2/authorization.rst b/docs/tutorials/wiki2/authorization.rst
index e3811b338..2e35574fd 100644
--- a/docs/tutorials/wiki2/authorization.rst
+++ b/docs/tutorials/wiki2/authorization.rst
@@ -207,14 +207,16 @@ routes:
:linenos:
:language: python
-.. note:: These lines must be added *before* this ``view_page`` route
- definition:
+.. 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 )
+ "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