Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ppaez committed Apr 13, 2012
1 parent c74f15b commit bce621a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/narr/hooks.rst
Expand Up @@ -145,7 +145,7 @@ the view which generates it can be overridden as necessary.


The :term:`forbidden view` callable is a view callable like any other. The The :term:`forbidden view` callable is a view callable like any other. The
:term:`view configuration` which causes it to be a "forbidden" view consists :term:`view configuration` which causes it to be a "forbidden" view consists
of using the meth:`pyramid.config.Configurator.add_forbidden_view` API or the of using the :meth:`pyramid.config.Configurator.add_forbidden_view` API or the
:class:`pyramid.view.forbidden_view_config` decorator. :class:`pyramid.view.forbidden_view_config` decorator.


For example, you can add a forbidden view by using the For example, you can add a forbidden view by using the
Expand All @@ -171,7 +171,7 @@ as a forbidden view:
from pyramid.view import forbidden_view_config from pyramid.view import forbidden_view_config
forbidden_view_config() @forbidden_view_config()
def forbidden(request): def forbidden(request):
return Response('forbidden') return Response('forbidden')
Expand Down Expand Up @@ -625,7 +625,7 @@ converts the arbitrary return value into something that implements
:class:`~pyramid.interfaces.IResponse`. :class:`~pyramid.interfaces.IResponse`.


For example, if you'd like to allow view callables to return bare string For example, if you'd like to allow view callables to return bare string
objects (without requiring a a :term:`renderer` to convert a string to a objects (without requiring a :term:`renderer` to convert a string to a
response object), you can register an adapter which converts the string to a response object), you can register an adapter which converts the string to a
Response: Response:


Expand Down

0 comments on commit bce621a

Please sign in to comment.