diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-12-25 04:32:21 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-12-25 04:32:21 +0000 |
| commit | ca866fc134c9640c1df17b4253544c4362143a9c (patch) | |
| tree | 236db3715f0d8f2dffcef602bdceb4407e79eaf7 /docs | |
| parent | 67bfd86e2be46a459468e9e7d33c49e0629d178d (diff) | |
| download | pyramid-ca866fc134c9640c1df17b4253544c4362143a9c.tar.gz pyramid-ca866fc134c9640c1df17b4253544c4362143a9c.tar.bz2 pyramid-ca866fc134c9640c1df17b4253544c4362143a9c.zip | |
Normalize code blocks.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/hooks.rst | 24 |
1 files changed, 12 insertions, 12 deletions
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 |
