summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-01-05 05:54:54 -0500
committerChris McDonough <chrism@plope.com>2012-01-05 05:54:54 -0500
commit78535833058ba2c01f44eef311f8bacdb1ee4bc7 (patch)
tree3546e720b25893f33881f0747e412707b003c2af /docs
parent5864016d6432d19fe9588f57d5b1ad95aac9c6c8 (diff)
downloadpyramid-78535833058ba2c01f44eef311f8bacdb1ee4bc7.tar.gz
pyramid-78535833058ba2c01f44eef311f8bacdb1ee4bc7.tar.bz2
pyramid-78535833058ba2c01f44eef311f8bacdb1ee4bc7.zip
- String values passed to ``route_url`` or ``route_path`` that are meant to
replace "remainder" matches will now be URL-quoted except for embedded slashes. For example:: config.add_route('remain', '/foo*remainder') request.route_path('remain', remainder='abc / def') # -> '/foo/abc%20/%20def' Previously string values passed as remainder replacements were tacked on untouched, without any URL-quoting. But this doesn't really work logically if the value passed is Unicode (raw unicode cannot be placed in a URL or in a path) and it is inconsistent with the rest of the URL generation machinery if the value is a string (it won't be quoted unless by the caller). Some folks will have been relying on the older behavior to tack on query string elements and anchor portions of the URL; sorry, you'll need to change your code to use the ``_query`` and/or ``_anchor`` arguments to ``route_path`` or ``route_url`` to do this now. - If you pass a bytestring that contains non-ASCII characters to ``add_route`` as a pattern, it will now fail at startup time. Use Unicode instead.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions