diff options
| author | Patrick Canfield <patrickcandoit@gmail.com> | 2013-03-18 14:12:23 -0700 |
|---|---|---|
| committer | Pzatrick <patrickcandoit@gmail.com> | 2013-03-21 13:34:15 -0700 |
| commit | b4eeddf672987c8f03058f5bf0d4f7080007b0e2 (patch) | |
| tree | e426095928c156d50d68f317a94c91617c6f10bb /docs/tutorials | |
| parent | b1611cf0d24e2947ebfb58071ff7c695a1d824cc (diff) | |
| download | pyramid-b4eeddf672987c8f03058f5bf0d4f7080007b0e2.tar.gz pyramid-b4eeddf672987c8f03058f5bf0d4f7080007b0e2.tar.bz2 pyramid-b4eeddf672987c8f03058f5bf0d4f7080007b0e2.zip | |
Update definingviews.rst to be more explicit, concise (?)
A make the first sentence a litte more explicit,
default to present tense, remove unnecessary details
and use python instead of english when it's cleared to do so.
Diffstat (limited to 'docs/tutorials')
| -rw-r--r-- | docs/tutorials/wiki2/definingviews.rst | 14 |
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 |
