summaryrefslogtreecommitdiff
path: root/repoze
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-05-14 05:59:12 +0000
committerChris McDonough <chrism@agendaless.com>2009-05-14 05:59:12 +0000
commitdfad1fbd9fa46c67aee8de3c3d3b36c0af1ec7bf (patch)
tree3f90f6f5b500c1fe8b13661a465879b2150c04c0 /repoze
parent2b13f18404cb96c5274e0db55a312f07b48e3fe1 (diff)
downloadpyramid-dfad1fbd9fa46c67aee8de3c3d3b36c0af1ec7bf.tar.gz
pyramid-dfad1fbd9fa46c67aee8de3c3d3b36c0af1ec7bf.tar.bz2
pyramid-dfad1fbd9fa46c67aee8de3c3d3b36c0af1ec7bf.zip
Docs rendering tweaks.
Diffstat (limited to 'repoze')
-rw-r--r--repoze/bfg/push.py7
-rw-r--r--repoze/bfg/traversal.py24
2 files changed, 16 insertions, 15 deletions
diff --git a/repoze/bfg/push.py b/repoze/bfg/push.py
index c6f9e25cb..cefa19efc 100644
--- a/repoze/bfg/push.py
+++ b/repoze/bfg/push.py
@@ -9,9 +9,10 @@ except ImportError: #pragma NO COVERAGE
from repoze.bfg.functional import wraps #pragma NO COVERAGE
class pushpage(object):
- """ Decorator for a function which returns a response object after
- running the namespace the wrapped function returns through a
- Chameleon ZPT template.
+ """
+ Decorator for a function which returns a response object after
+ running the namespace the wrapped function returns through a
+ Chameleon ZPT template.
E.g.::
diff --git a/repoze/bfg/traversal.py b/repoze/bfg/traversal.py
index 572c31e74..49017a93b 100644
--- a/repoze/bfg/traversal.py
+++ b/repoze/bfg/traversal.py
@@ -152,12 +152,12 @@ def model_path(model, *elements):
``model_path`` function will attempt to append it to a
string and it will cause a TypeError.
- .. note:: The the :term:`root` model *must* have a ``__name__``
- attribute with a value of either ``None`` or the empty
- string for paths to be generated properly. If the root
- model has a non-null ``__name__`` attribute, its name
- will be prepended to the generated path rather than a
- single leading '/' character.
+ .. note:: The the :term:`root` model *must* have a ``__name__``
+ attribute with a value of either ``None`` or the empty
+ string for paths to be generated properly. If the root
+ model has a non-null ``__name__`` attribute, its name
+ will be prepended to the generated path rather than a
+ single leading '/' character.
"""
path = _model_path_list(model, *elements)
return path and '/'.join([quote_path_segment(x) for x in path]) or '/'
@@ -192,12 +192,12 @@ def model_path_tuple(model, *elements):
dictionary will be placed in the path tuple; no warning
or error will be given.
- .. note:: The the :term:`root` model *must* have a ``__name__``
- attribute with a value of either ``None`` or the empty
- string for path tuples to be generated properly. If
- the root model has a non-null ``__name__`` attribute,
- its name will be the first element in the generated
- path tuple rather than the empty string.
+ .. note:: The the :term:`root` model *must* have a ``__name__``
+ attribute with a value of either ``None`` or the empty
+ string for path tuples to be generated properly. If
+ the root model has a non-null ``__name__`` attribute,
+ its name will be the first element in the generated
+ path tuple rather than the empty string.
"""
return tuple(_model_path_list(model, *elements))