From 0860706a059fc5d5954e6456cff42328554ba494 Mon Sep 17 00:00:00 2001 From: Casey Duncan Date: Wed, 24 Nov 2010 23:57:27 -0700 Subject: XXX Add an example of when views would be invoked by the 'useful' config. Confirm this is correct XXX --- docs/narr/hybrid.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/narr/hybrid.rst') 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. -- cgit v1.2.3