summaryrefslogtreecommitdiff
path: root/docs/narr/traversal.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-05-31 20:36:53 +0000
committerChris McDonough <chrism@agendaless.com>2009-05-31 20:36:53 +0000
commit6c7b9a1534d35aeb07f4a9a59b8e15633f6b6b6b (patch)
tree184f1553b041226cac7e8a83b71578e556e15874 /docs/narr/traversal.rst
parent8c3b807625d0480c7ce934bf7daf3437328346bf (diff)
downloadpyramid-6c7b9a1534d35aeb07f4a9a59b8e15633f6b6b6b.tar.gz
pyramid-6c7b9a1534d35aeb07f4a9a59b8e15633f6b6b6b.tar.bz2
pyramid-6c7b9a1534d35aeb07f4a9a59b8e15633f6b6b6b.zip
- The ``request_type`` argument of ZCML ``view`` declarations and
``bfg_view`` decorators can now be one of the strings ``GET``, ``POST``, ``PUT``, ``DELETE``, or ``HEAD`` instead of a reference to the respective interface type imported from ``repoze.bfg.interfaces``.
Diffstat (limited to 'docs/narr/traversal.rst')
-rw-r--r--docs/narr/traversal.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/narr/traversal.rst b/docs/narr/traversal.rst
index 76823041a..7177432de 100644
--- a/docs/narr/traversal.rst
+++ b/docs/narr/traversal.rst
@@ -5,12 +5,12 @@ Traversal
When :term:`traversal` is used, the :mod:`repoze.bfg` *Router* parses
the URL associated with the request and splits the URL into path
-segments. Based on these path segments, :mod:`repoze.bfg` traverses
-a *model graph* in order to find a :term:`context`. It then
-attempts to find a :term:`view` based on the *type* of the context
-(specified by an :term:`interface`). If :mod:`repoze.bfg` finds a
-:term:`view` for the context, it calls it and returns a response to
-the user.
+segments. Based on these path segments, :mod:`repoze.bfg` traverses a
+*model graph* in order to find a :term:`context`. It then attempts to
+find a :term:`view` based on the *type* of the context (specified by
+its Python class type or any :term:`interface` attached to it). If
+:mod:`repoze.bfg` finds a :term:`view` for the context, it calls it
+and returns a response to the user.
The Model Graph
---------------