From ca866fc134c9640c1df17b4253544c4362143a9c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 25 Dec 2009 04:32:21 +0000 Subject: Normalize code blocks. --- docs/narr/hooks.rst | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'docs') diff --git a/docs/narr/hooks.rst b/docs/narr/hooks.rst index 924130c1c..862019209 100644 --- a/docs/narr/hooks.rst +++ b/docs/narr/hooks.rst @@ -348,18 +348,18 @@ The API that must be implemented by a class that provides .. code-block:: python :linenos: - class IContextURL(Interface): - """ An adapter which deals with URLs related to a context. - """ - def __init__(self, context, request): - """ Accept the context and request """ - - def virtual_root(self): - """ Return the virtual root object related to a request and the - current context""" - - def __call__(self): - """ Return a URL that points to the context """ + class IContextURL(Interface): + """ An adapter which deals with URLs related to a context. + """ + def __init__(self, context, request): + """ Accept the context and request """ + + def virtual_root(self): + """ Return the virtual root object related to a request and the + current context""" + + def __call__(self): + """ Return a URL that points to the context """ The default context URL generator is available for perusal as the class :class:`repoze.bfg.traversal.TraversalContextURL` in the -- cgit v1.2.3