summaryrefslogtreecommitdiff
path: root/docs/narr
diff options
context:
space:
mode:
authorChris Beelby <cmbeelby@gmail.com>2011-01-30 17:38:11 -0500
committerChris Beelby <cmbeelby@gmail.com>2011-01-30 17:38:11 -0500
commit86fc0cb9039d219e4a063826ac0931d47fe65de0 (patch)
tree407c1e26a18a13252ec4d2c1dc27fb417cc96559 /docs/narr
parent5f729e1c584eb647009a83a576715df7605eacb4 (diff)
downloadpyramid-86fc0cb9039d219e4a063826ac0931d47fe65de0.tar.gz
pyramid-86fc0cb9039d219e4a063826ac0931d47fe65de0.tar.bz2
pyramid-86fc0cb9039d219e4a063826ac0931d47fe65de0.zip
More errors in narrative fixed.
Diffstat (limited to 'docs/narr')
-rw-r--r--docs/narr/viewconfig.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/narr/viewconfig.rst b/docs/narr/viewconfig.rst
index 092bd6012..c45f053cf 100644
--- a/docs/narr/viewconfig.rst
+++ b/docs/narr/viewconfig.rst
@@ -178,7 +178,7 @@ Non-Predicate Arguments
If ``wrapper`` is not supplied, no wrapper view is used.
``decorator``
- A :term:`dotted Python name` to function (or the function itself) which
+ A :term:`dotted Python name` to a function (or the function itself) which
will be used to decorate the registered :term:`view callable`. The
decorator function will be called with the view callable as a single
argument. The view callable it is passed will accept ``(context,
@@ -244,7 +244,7 @@ configured view.
*This is an advanced feature, not often used by "civilians"*.
``request_method``
- This value can either be one of the strings ``GET``, ``POST``, ``PUT``,
+ This value can be one of the strings ``GET``, ``POST``, ``PUT``,
``DELETE``, or ``HEAD`` representing an HTTP ``REQUEST_METHOD``. A view
declaration with this argument ensures that the view will only be called
when the request's ``method`` attribute (aka the ``REQUEST_METHOD`` of the
@@ -403,7 +403,7 @@ configuration stanza:
.. code-block:: python
:linenos:
- config.add_view('.views.my_view', name='my_view', request_method='POST',
+ config.add_view('mypackage.views.my_view', name='my_view', request_method='POST',
context=MyResource, permission='read')
All arguments to ``view_config`` may be omitted. For example:
@@ -428,7 +428,7 @@ The mere existence of a ``@view_config`` decorator doesn't suffice to perform
view configuration. All that the decorator does is "annotate" the function
with your configuration declarations, it doesn't process them. To make
:app:`Pyramid` process your :class:`pyramid.view.view_config` declarations,
-you *must* do use the ``scan`` method of a
+you *must* use the ``scan`` method of a
:class:`pyramid.config.Configurator`:
.. code-block:: python