diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-07-28 03:18:57 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-07-28 03:18:57 +0000 |
| commit | 96e65d8e6d47a1b806c4d281e6890f77f86407c3 (patch) | |
| tree | 5c5c3d34a3062b81d8d1b10d0165f9d9581a9ccb /docs | |
| parent | 7c9612898d38f2ef89677ffa9b848ffb50d613a3 (diff) | |
| download | pyramid-96e65d8e6d47a1b806c4d281e6890f77f86407c3.tar.gz pyramid-96e65d8e6d47a1b806c4d281e6890f77f86407c3.tar.bz2 pyramid-96e65d8e6d47a1b806c4d281e6890f77f86407c3.zip | |
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api/urldispatch.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/api/urldispatch.rst b/docs/api/urldispatch.rst index 4660d0de8..8d4930d34 100644 --- a/docs/api/urldispatch.rst +++ b/docs/api/urldispatch.rst @@ -42,7 +42,8 @@ You might then configure the ``RoutesMapper`` like so:: At this point, if any URL matches the pattern ``archives/:article``, the ``.views.articles_view`` view will be called with its context as a -only-the-fly-generated-model with attributes matching the Routes -routing dictionary associated with the request. In particular, in -this case the model will have an ``article`` attribute matching the -article picked off the URL by Routes. +only-the-fly-generated-model with attributes matching the keys and +values in the Routes routing dictionary associated with the request. +In this case in particular, when a user visits +``/archives/something``, the model will have an ``article`` attribute +with the value of ``something``. |
