summaryrefslogtreecommitdiff
path: root/docs/narr/hybrid.rst
diff options
context:
space:
mode:
authorCasey Duncan <casey.duncan@gmail.com>2010-11-24 23:57:27 -0700
committerCasey Duncan <casey.duncan@gmail.com>2010-11-24 23:57:27 -0700
commit0860706a059fc5d5954e6456cff42328554ba494 (patch)
tree0163ba8180937cf41d1465e8144102bbb11aedc6 /docs/narr/hybrid.rst
parent36255b31bde006e49fb12660ea3b1b3d559a31c6 (diff)
downloadpyramid-0860706a059fc5d5954e6456cff42328554ba494.tar.gz
pyramid-0860706a059fc5d5954e6456cff42328554ba494.tar.bz2
pyramid-0860706a059fc5d5954e6456cff42328554ba494.zip
XXX Add an example of when views would be invoked by the 'useful' config. Confirm this is correct XXX
Diffstat (limited to 'docs/narr/hybrid.rst')
-rw-r--r--docs/narr/hybrid.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/narr/hybrid.rst b/docs/narr/hybrid.rst
index da79fb818..590ee3677 100644
--- a/docs/narr/hybrid.rst
+++ b/docs/narr/hybrid.rst
@@ -526,3 +526,8 @@ token must end the route's pattern. For example:
config.add_view('myproject.views.bazbuz', name='bazbuz',
route_name='abc')
+With the above configuration, the ``myproject.views.bazbuz`` view will
+be invoked when the request URI is ``/abc/bazbuz``, assuming there is
+no object contained by the root object with the key ``bazbuz``. A
+different request URI, such as ``/abc/foo/bar``, would invoke the
+default ``myproject.views.abc`` view.