From c1278c88b6cd19ad81c96f8b8a66a01df23a6200 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 1 Jun 2009 07:02:21 +0000 Subject: Add headers. --- docs/narr/hooks.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/narr/hooks.rst') 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): -- cgit v1.2.3