Chris Beelby
2011-01-30 86fc0cb9039d219e4a063826ac0931d47fe65de0
More errors in narrative fixed.
1 files modified
8 ■■■■ changed files
docs/narr/viewconfig.rst 8 ●●●● patch | view | raw | blame | history
docs/narr/viewconfig.rst
@@ -178,7 +178,7 @@
  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 @@
  *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 @@
.. 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 @@
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