diff options
| author | Chris McDonough <chrism@plope.com> | 2010-12-01 11:09:50 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-12-01 11:09:50 -0500 |
| commit | 6942961545fd909bbb6d16a1ab7992351b1586e6 (patch) | |
| tree | 4bfe1e431f89682420ac051365b9bd32b60dd06b /docs/narr | |
| parent | 5238ae329fb70e5e386db0b127d958c8523d7247 (diff) | |
| download | pyramid-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.rst | 9 |
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 ---------------- |
