summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2008-07-19 22:13:15 +0000
committerChris McDonough <chrism@agendaless.com>2008-07-19 22:13:15 +0000
commitab8048ab0ec363f552320280743323b1fd21ae3f (patch)
treeaca7354f307c4b1b1ec2e3f96c36567ee9211c9f /docs
parent8e0dfcc679b965374ad2f13532e6e483dab4c6e0 (diff)
downloadpyramid-ab8048ab0ec363f552320280743323b1fd21ae3f.tar.gz
pyramid-ab8048ab0ec363f552320280743323b1fd21ae3f.tar.bz2
pyramid-ab8048ab0ec363f552320280743323b1fd21ae3f.zip
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/introduction.rst18
1 files changed, 13 insertions, 5 deletions
diff --git a/docs/narr/introduction.rst b/docs/narr/introduction.rst
index a2b925265..0782af2fb 100644
--- a/docs/narr/introduction.rst
+++ b/docs/narr/introduction.rst
@@ -371,11 +371,19 @@ that is willing to deal with that case", and returns a view. It is
passed the "biz" object as the "context" and the current WebOb request
as the "request". It returns a response.
-The only "special case" is when you end up with a "view name" that is
-the empty string. In this case the "default view" is looked up. The
-default view has a name that equals the empty string. If a view is
-configured in the view registry without a name, it is the default
-view.
+There are two special cases:
+
+- During traversal you will often end up with a "view name" that is
+ the empty string. This indicates that ``repoze.bfg`` should look up
+ the *default view*. The default view is a view that is registered
+ with no name or a view which is registered with a name that equals
+ the empty string.
+
+- If any path segment element begins with the special characters
+ ``@@`` (think of them as goggles), that element is considered the
+ view name immediately and traversal stops there. This allows you to
+ address views that may have the same names as model instance names
+ without conflict.
A Sample Application
--------------------