summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/tutorials/wiki2/definingviews.rst14
1 files changed, 6 insertions, 8 deletions
diff --git a/docs/tutorials/wiki2/definingviews.rst b/docs/tutorials/wiki2/definingviews.rst
index 72cba8d1e..9df72c926 100644
--- a/docs/tutorials/wiki2/definingviews.rst
+++ b/docs/tutorials/wiki2/definingviews.rst
@@ -6,14 +6,12 @@ A :term:`view callable` in a :app:`Pyramid` application is typically a simple
Python function that accepts a single parameter named :term:`request`. A
view callable is assumed to return a :term:`response` object.
-The request object has an attribute named ``matchdict``. A ``matchdict`` maps
-the placeholders in the matching URL ``pattern`` to the substrings of the
-:term:`request` ed URL. For instance, if a call to
-:meth:`pyramid.config.Configurator.add_route` in ``__init__.py`` had the pattern
-``{one}/{two}``, and the URL at ``http://example.com/foo/bar`` was invoked, matching
-this pattern, the ``matchdict`` dictionary attached to the request passed to the view
-would have a ``'one'`` key with the value ``'foo'`` and a ``'two'`` key with the
-value ``'bar'``.
+The request object has a dictionary as an attribute named ``matchdict``.
+A ``matchdict`` maps the placeholders in the matching URL ``pattern`` to the substrings
+of the :term:`request` ed URL. For instance, if a call to
+:meth:`pyramid.config.Configurator.add_route` has the pattern
+``{one}/{two}``, and the URL at ``http://example.com/foo/bar`` is invoked, matching
+this pattern, the ``matchdict`` attached to the request would look like: ``{'one':'foo', 'two':'bar'}``
Declaring Dependencies in Our ``setup.py`` File