summaryrefslogtreecommitdiff
path: root/docs/narr
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-11-28 18:37:30 +0000
committerChris McDonough <chrism@agendaless.com>2009-11-28 18:37:30 +0000
commit58ae2a548409b0a2a9e15114a8a9220dedfa293a (patch)
tree23a01e4d8045b4c58cf85050c0df56fdaeb3cf3e /docs/narr
parentafc4deb5565e7da2f50e41fa90d74edbd4640e03 (diff)
downloadpyramid-58ae2a548409b0a2a9e15114a8a9220dedfa293a.tar.gz
pyramid-58ae2a548409b0a2a9e15114a8a9220dedfa293a.tar.bz2
pyramid-58ae2a548409b0a2a9e15114a8a9220dedfa293a.zip
More Rossi fixes.
Diffstat (limited to 'docs/narr')
-rw-r--r--docs/narr/configuration.rst15
1 files changed, 7 insertions, 8 deletions
diff --git a/docs/narr/configuration.rst b/docs/narr/configuration.rst
index 283156cc7..4a077c886 100644
--- a/docs/narr/configuration.rst
+++ b/docs/narr/configuration.rst
@@ -451,13 +451,12 @@ this discussion, the :term:`view name` can be considered the first
non-empty path segment in the URL: in particular, this view
configuration will match when the URL is ``/goodbye``.
-Since our ``goodbye_world`` view callable returns a Response instance
-with a body of ``Goodbye world!`` in the configuration implied by this
-script, a visit by a user agent to the URL that contains the path info
-``/goodbye`` of the a server running this application will receive the
-greeting ``Goodbye world!`` unless :mod:`repoze.bfg` finds a more
-specific view configuration in its application registry for a given
-request.
+Our ``goodbye_world`` :term:`view callable` returns a Response
+instance with a body of ``Goodbye world!`` in the configuration
+implied by this script. It is configured as with a :term:`view name`
+predicate of ``goodbye``. Therefore, a user agent contacting a server
+running this application will receive the greeting ``Goodbye world!``
+when the path info part of the request is ``/goodbye``.
Each invocation of the ``add_view`` method implies a :term:`view
configuration` registration. Each :term:`predicate` provided as a
@@ -489,7 +488,7 @@ the best view configuration for any request, the ``goodbye_world``
view callable will be used when the URL contains path information that
ends with ``/goodbye``.
-WGSI Application Creation
+WSGI Application Creation
~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python