diff options
| author | Éric Araujo <merwok@netwok.org> | 2013-07-11 16:44:24 -0400 |
|---|---|---|
| committer | Éric Araujo <merwok@netwok.org> | 2013-07-11 16:44:24 -0400 |
| commit | f1f49bfacc5fd1fef1b4be23cdd26ccb4be6e0f4 (patch) | |
| tree | 8c209898a07b4f802b69d055c99cb2b2d457e94f | |
| parent | cd9d7f5b3b087cb151052315ec6decf9e4786475 (diff) | |
| download | pyramid-f1f49bfacc5fd1fef1b4be23cdd26ccb4be6e0f4.tar.gz pyramid-f1f49bfacc5fd1fef1b4be23cdd26ccb4be6e0f4.tar.bz2 pyramid-f1f49bfacc5fd1fef1b4be23cdd26ccb4be6e0f4.zip | |
Minor markup update to clarify object type
| -rw-r--r-- | pyramid/config/routes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyramid/config/routes.py b/pyramid/config/routes.py index f495794b4..c86e4a2dd 100644 --- a/pyramid/config/routes.py +++ b/pyramid/config/routes.py @@ -90,10 +90,10 @@ class RoutesConfiguratorMixin(object): ``traverse`` argument provided to ``add_route`` is ``/{article}``, when a request comes in that causes the route to match in such a way that the ``article`` match value is - '1' (when the request URI is ``/articles/1/edit``), the + ``'1'`` (when the request URI is ``/articles/1/edit``), the traversal path will be generated as ``/1``. This means that the root object's ``__getitem__`` will be called with the - name ``1`` during the traversal phase. If the ``1`` object + name ``'1'`` during the traversal phase. If the ``'1'`` object exists, it will become the :term:`context` of the request. :ref:`traversal_chapter` has more information about traversal. |
