diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-02-06 05:07:51 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-02-06 05:07:51 +0000 |
| commit | 3588219d7ffc8333eb0b75db31e120a41d2c5b52 (patch) | |
| tree | 1d8ec61267c31d66bfbb581dd3ee4e7bdd89008a | |
| parent | bb3cfa91e3bd40678a20d5dd522354a09e214f2d (diff) | |
| download | pyramid-3588219d7ffc8333eb0b75db31e120a41d2c5b52.tar.gz pyramid-3588219d7ffc8333eb0b75db31e120a41d2c5b52.tar.bz2 pyramid-3588219d7ffc8333eb0b75db31e120a41d2c5b52.zip | |
Bah.
| -rw-r--r-- | repoze/bfg/traversal.py | 4 |
1 files 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``. |
