diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-11-22 08:42:41 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-11-22 08:42:41 +0000 |
| commit | 6012899c7d7bd4a5ffd64f0b9cede9639610ef41 (patch) | |
| tree | 93e615f417fb192018ccdb62029f94e3d81096f7 /docs/narr/hooks.rst | |
| parent | 6b538ed7e07b03024ba145e955880d2188edd679 (diff) | |
| download | pyramid-6012899c7d7bd4a5ffd64f0b9cede9639610ef41.tar.gz pyramid-6012899c7d7bd4a5ffd64f0b9cede9639610ef41.tar.bz2 pyramid-6012899c7d7bd4a5ffd64f0b9cede9639610ef41.zip | |
Rendering tweaks.
Diffstat (limited to 'docs/narr/hooks.rst')
| -rw-r--r-- | docs/narr/hooks.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst index 0fea7c64e..f5fc4233b 100644 --- a/docs/narr/hooks.rst +++ b/docs/narr/hooks.rst @@ -27,6 +27,7 @@ to the notfound view you want to use. Here's some sample code that implements a minimal NotFound view: .. code-block:: python + :linenos: from webob.exc import HTTPNotFound @@ -104,6 +105,7 @@ the view invocation was denied. The ``request`` is the current code that implements a minimal forbidden view: .. code-block:: python + :linenos: from repoze.bfg.chameleon_zpt import render_template_to_response @@ -345,6 +347,4 @@ The API that must be implemented by a class that provides The default context URL generator is available for perusal as the class ``TraversalContextURL`` in the `traversal module <http://svn.repoze.org/repoze.bfg/trunk/repoze/bfg/traversal.py>`_ of -the BFG subversion repository. - - +the :term:`Repoze` Subversion repository. |
