diff options
| author | Ian Joseph Wilson <ianjosephwilson@gmail.com> | 2012-06-17 10:34:48 -0700 |
|---|---|---|
| committer | Ian Joseph Wilson <ianjosephwilson@gmail.com> | 2012-06-17 10:34:48 -0700 |
| commit | 2e1d2009f3abe8163e9e2adc5ff5c0bbeb1b4630 (patch) | |
| tree | 48244d0278a25f145e9d5e0f00703836a0492059 /docs/narr/urldispatch.rst | |
| parent | cf46a12292cf15303d68d27c6ba4155ecc2b4586 (diff) | |
| parent | 3da92290bfaa8b4072019c916e75cd96ebc0f6dc (diff) | |
| download | pyramid-2e1d2009f3abe8163e9e2adc5ff5c0bbeb1b4630.tar.gz pyramid-2e1d2009f3abe8163e9e2adc5ff5c0bbeb1b4630.tar.bz2 pyramid-2e1d2009f3abe8163e9e2adc5ff5c0bbeb1b4630.zip | |
Merge branch 'master' of https://github.com/Pylons/pyramid
Diffstat (limited to 'docs/narr/urldispatch.rst')
| -rw-r--r-- | docs/narr/urldispatch.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index acbccbdfd..ecf3d026a 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -954,7 +954,7 @@ will be prepended with the first: from pyramid.config import Configurator def timing_include(config): - config.add_route('show_times', /times') + config.add_route('show_times', '/times') def users_include(config): config.add_route('show_users', '/show') @@ -966,7 +966,7 @@ will be prepended with the first: In the above configuration, the ``show_users`` route will still have an effective route pattern of ``/users/show``. The ``show_times`` route -however, will have an effective pattern of ``/users/timing/show_times``. +however, will have an effective pattern of ``/users/timing/times``. Route prefixes have no impact on the requirement that the set of route *names* in any given Pyramid configuration must be entirely unique. If you @@ -981,7 +981,7 @@ that may be added in the future. For example: from pyramid.config import Configurator def timing_include(config): - config.add_route('timing.show_times', /times') + config.add_route('timing.show_times', '/times') def users_include(config): config.add_route('users.show_users', '/show') |
