summaryrefslogtreecommitdiff
path: root/repoze/bfg/traversal.py
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/bfg/traversal.py
parent2b13f18404cb96c5274e0db55a312f07b48e3fe1 (diff)
downloadpyramid-dfad1fbd9fa46c67aee8de3c3d3b36c0af1ec7bf.tar.gz
pyramid-dfad1fbd9fa46c67aee8de3c3d3b36c0af1ec7bf.tar.bz2
pyramid-dfad1fbd9fa46c67aee8de3c3d3b36c0af1ec7bf.zip
Docs rendering tweaks.
Diffstat (limited to 'repoze/bfg/traversal.py')
-rw-r--r--repoze/bfg/traversal.py24
1 files changed, 12 insertions, 12 deletions
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))