summaryrefslogtreecommitdiff
path: root/docs/narr/configuration.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-12-09 16:54:43 +0000
committerChris McDonough <chrism@agendaless.com>2009-12-09 16:54:43 +0000
commite40eb200171e5917c4a8b7419127ae3e7b2af0ab (patch)
treec070dca104606cceadea1924ae2de158d61111fa /docs/narr/configuration.rst
parent42da8fe9f779c5bcd7694348a1b47f5ec2bc5e59 (diff)
downloadpyramid-e40eb200171e5917c4a8b7419127ae3e7b2af0ab.tar.gz
pyramid-e40eb200171e5917c4a8b7419127ae3e7b2af0ab.tar.bz2
pyramid-e40eb200171e5917c4a8b7419127ae3e7b2af0ab.zip
- Remove explanation of changing the request type in a new request
event subscriber, as other predicates are now usually an easier way to get this done.
Diffstat (limited to 'docs/narr/configuration.rst')
-rw-r--r--docs/narr/configuration.rst28
1 files changed, 15 insertions, 13 deletions
diff --git a/docs/narr/configuration.rst b/docs/narr/configuration.rst
index 7479086a5..98b3f221e 100644
--- a/docs/narr/configuration.rst
+++ b/docs/narr/configuration.rst
@@ -193,25 +193,18 @@ based on a URL. However, our sample application uses only
:term:`traversal`.
In :mod:`repoze.bfg` terms, :term:`traversal` is the act of walking
-over a *directed graph* of objects from a :term:`root` object using
-the individual path segments of the "path info" portion of a URL (the
-data following the hostname and port number, but before any query
-string elements or fragments, for example the ``/a/b/c`` portion of
-the URL ``http://example.com/a/b/c?foo=1``) in order to find a
-:term:`context` object and a :term:`view name`. The combination of
-the :term:`context` object and the :term:`view name` (and, in more
-complex configurations, other :term:`predicate` values) are used to
-find "the right" :term:`view callable`, which will be invoked after
+over an object graph starting from a :term:`root` object in order to
+find a :term:`context` object and a :term:`view name`. The individual
+path segments of the "path info" portion of a URL (the data following
+the hostname and port number, but before any query string elements or
+fragments, for example the ``/a/b/c`` portion of the URL
+``http://example.com/a/b/c?foo=1``) are used as "steps" during
traversal.
.. note:: A useful analogy of how :mod:`repoze.bfg` :term:`traversal`
works is available within the section entitled
:ref:`traversal_behavior`. You should probably go read it now.
-The object graph of our hello world application is very simple:
-there's exactly one object in our graph; the default :term:`root`
-object.
-
The results of a :term:`traversal` include a :term:`context` and a
:term:`view name`. The :term:`view name` is the *first* URL path
segment in the set of path segments "left over" during
@@ -231,6 +224,15 @@ exhausting all the path segments implied by the path info of the URL:
no segments are "left over". In this case, because the :term:`view
name` is non-empty, a *non-default* view callable will be invoked.
+The combination of the :term:`context` object and the :term:`view
+name` (and, in more complex configurations, other :term:`predicate`
+values) are used to find "the right" :term:`view callable`, which will
+be invoked after traversal.
+
+The object graph of our hello world application is very simple:
+there's exactly one object in our graph; the default :term:`root`
+object.
+
Apologies for the digression; on with the tutorial.
Relating Traversal to the Hello World Application