summaryrefslogtreecommitdiff
path: root/docs/narr
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-12-01 11:09:50 -0500
committerChris McDonough <chrism@plope.com>2010-12-01 11:09:50 -0500
commit6942961545fd909bbb6d16a1ab7992351b1586e6 (patch)
tree4bfe1e431f89682420ac051365b9bd32b60dd06b /docs/narr
parent5238ae329fb70e5e386db0b127d958c8523d7247 (diff)
downloadpyramid-6942961545fd909bbb6d16a1ab7992351b1586e6.tar.gz
pyramid-6942961545fd909bbb6d16a1ab7992351b1586e6.tar.bz2
pyramid-6942961545fd909bbb6d16a1ab7992351b1586e6.zip
fix bad info in urldispatch chapter: matchdict and matched_route will be None
Diffstat (limited to 'docs/narr')
-rw-r--r--docs/narr/urldispatch.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst
index b025ce8d6..e439c71cd 100644
--- a/docs/narr/urldispatch.rst
+++ b/docs/narr/urldispatch.rst
@@ -838,8 +838,8 @@ strings. The values will be Unicode objects.
.. note::
- If no route URL pattern matches, no ``matchdict`` is attached to
- the request.
+ If no route URL pattern matches, the ``matchdict`` object attached to the
+ request will be ``None``.
.. index::
single: matched_route
@@ -857,6 +857,11 @@ an attribute of the :term:`request` object. Thus,
request. The most useful attribute of the route object is ``name``,
which is the name of the route that matched.
+.. note::
+
+ If no route URL pattern matches, the ``matched_route`` object attached to
+ the request will be ``None``.
+
Routing Examples
----------------