From 6c7b9a1534d35aeb07f4a9a59b8e15633f6b6b6b Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 31 May 2009 20:36:53 +0000 Subject: - 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``. --- docs/narr/traversal.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/narr/traversal.rst') 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 --------------- -- cgit v1.2.3