From 3588219d7ffc8333eb0b75db31e120a41d2c5b52 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 6 Feb 2009 05:07:51 +0000 Subject: Bah. --- repoze/bfg/traversal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repoze/bfg/traversal.py b/repoze/bfg/traversal.py index 671d35fc3..e330a14eb 100644 --- a/repoze/bfg/traversal.py +++ b/repoze/bfg/traversal.py @@ -133,13 +133,13 @@ def model_path(model, *elements): ``/foo/bar``. Any positional arguments passed in as ``elements`` will be appended as path segments to the end of the model path. For instance, if the model's path is ``/foo/bar`` and ``elements`` - equals ``('a', 'b')``, the returned tuple will be + equals ``('a', 'b')``, the returned string will be ``/foo/bar/a/b``. The first character in the string will always be the ``/`` character (a leading ``/`` character in a path string represents that the path is absolute). Model path strings returned will be escaped in the following - manner: each unicode path segment will be encoded as UTF-8 and as + manner: each unicode path segment will be encoded as UTF-8 and each path segment will be escaped via Python's ``urllib.quote``. For example, ``/path/to%20the/La%20Pe%C3%B1a``. -- cgit v1.2.3