diff options
| author | Tres Seaver <tseaver@palladion.com> | 2013-07-12 21:24:46 -0700 |
|---|---|---|
| committer | Tres Seaver <tseaver@palladion.com> | 2013-07-12 21:24:46 -0700 |
| commit | 22a2152cf0514410c6874b673cc1ec1f843a7179 (patch) | |
| tree | 79bdc71b52b487c6f2711fdba285b788dbb01862 | |
| parent | 7f3bf2fc61c49cf6c1d255c6629fc3cd61f84653 (diff) | |
| parent | f1f49bfacc5fd1fef1b4be23cdd26ccb4be6e0f4 (diff) | |
| download | pyramid-22a2152cf0514410c6874b673cc1ec1f843a7179.tar.gz pyramid-22a2152cf0514410c6874b673cc1ec1f843a7179.tar.bz2 pyramid-22a2152cf0514410c6874b673cc1ec1f843a7179.zip | |
Merge pull request #1043 from merwok/master
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. |
