summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-12-25 04:32:21 +0000
committerChris McDonough <chrism@agendaless.com>2009-12-25 04:32:21 +0000
commitca866fc134c9640c1df17b4253544c4362143a9c (patch)
tree236db3715f0d8f2dffcef602bdceb4407e79eaf7 /docs
parent67bfd86e2be46a459468e9e7d33c49e0629d178d (diff)
downloadpyramid-ca866fc134c9640c1df17b4253544c4362143a9c.tar.gz
pyramid-ca866fc134c9640c1df17b4253544c4362143a9c.tar.bz2
pyramid-ca866fc134c9640c1df17b4253544c4362143a9c.zip
Normalize code blocks.
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/hooks.rst24
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