diff options
| author | Michael Merickel <michael@merickel.org> | 2015-03-26 11:54:30 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2015-03-26 11:54:52 -0500 |
| commit | 610b6edef76168e6a499871be10ba9ea5ea6aa6d (patch) | |
| tree | a2c16bcd43aa916b9389007f29ca15981dfaf995 /docs/narr/viewconfig.rst | |
| parent | 0fa0b10eb55cbeda4aa63264325b8a1fe76ac378 (diff) | |
| download | pyramid-610b6edef76168e6a499871be10ba9ea5ea6aa6d.tar.gz pyramid-610b6edef76168e6a499871be10ba9ea5ea6aa6d.tar.bz2 pyramid-610b6edef76168e6a499871be10ba9ea5ea6aa6d.zip | |
fix out of date match_param docs
Diffstat (limited to 'docs/narr/viewconfig.rst')
| -rw-r--r-- | docs/narr/viewconfig.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/narr/viewconfig.rst b/docs/narr/viewconfig.rst index a0feef8d7..d5203c6ba 100644 --- a/docs/narr/viewconfig.rst +++ b/docs/narr/viewconfig.rst @@ -325,7 +325,7 @@ configured view. ``match_param`` This param may be either a single string of the format "key=value" or a - dict of key/value pairs. + tuple containing one or more of these strings. This argument ensures that the view will only be called when the :term:`request` has key/value pairs in its :term:`matchdict` that equal @@ -334,8 +334,8 @@ configured view. hand side of the expression (``edit``) for the view to "match" the current request. - If the ``match_param`` is a dict, every key/value pair must match for the - predicate to pass. + If the ``match_param`` is a tuple, every key/value pair must match + for the predicate to pass. If ``match_param`` is not supplied, the view will be invoked without consideration of the keys and values in ``request.matchdict``. |
