summaryrefslogtreecommitdiff
path: root/docs/narr/hooks.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-06-01 07:02:21 +0000
committerChris McDonough <chrism@agendaless.com>2009-06-01 07:02:21 +0000
commitc1278c88b6cd19ad81c96f8b8a66a01df23a6200 (patch)
tree0c0bd0742c9aa7eae72a8e652e81c8d91ac7bb9b /docs/narr/hooks.rst
parentaff22be3468d594de35b2208bed1299aa9ba5074 (diff)
downloadpyramid-c1278c88b6cd19ad81c96f8b8a66a01df23a6200.tar.gz
pyramid-c1278c88b6cd19ad81c96f8b8a66a01df23a6200.tar.bz2
pyramid-c1278c88b6cd19ad81c96f8b8a66a01df23a6200.zip
Add headers.
Diffstat (limited to 'docs/narr/hooks.rst')
-rw-r--r--docs/narr/hooks.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst
index ace2c847b..533024352 100644
--- a/docs/narr/hooks.rst
+++ b/docs/narr/hooks.rst
@@ -164,6 +164,8 @@ code that implements a minimal forbidden view:
an alterate forbidden view. For example, it would make sense to
return a response with a ``403 Forbidden`` status code.
+.. _changing_routes_context_factory:
+
Changing the Default Routes Context Factory
-------------------------------------------
@@ -184,6 +186,7 @@ Python dotted name to the context factory you want to use. Here's
some sample code that implements a minimal context factory:
.. code-block:: python
+ :linenos:
class RoutesContextFactory(object):
def __init__(self, **kw):