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 +++ docs/narr/security.rst | 2 ++ docs/narr/urldispatch.rst | 2 ++ 3 files changed, 7 insertions(+) (limited to 'docs') 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): diff --git a/docs/narr/security.rst b/docs/narr/security.rst index e48922f59..52178fa26 100644 --- a/docs/narr/security.rst +++ b/docs/narr/security.rst @@ -110,6 +110,8 @@ normal application operations, the user will need to possess the Permission names are just strings. They hold no special significance to the system. You can name permissions whatever you like. +.. _assigning_acls: + Assigning ACLs to your Model Objects ------------------------------------ diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index f19faa031..cc8efb5b2 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -69,6 +69,8 @@ NotFound error to the user's browser when no routes match. .. note:: See :ref:`modelspy_project_section` for an example of a simple root factory callable that will use traversal. +.. _route_zcml_directive: + The ``route`` ZCML Directive ---------------------------- -- cgit v1.2.3