summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/src/basiclayout/setup.cfg
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-11-18 16:56:05 -0500
committerChris McDonough <chrism@plope.com>2010-11-18 16:56:05 -0500
commita66593d25e77f1a0e749f5590b45498bbaa66755 (patch)
treeea935aba1b7985e2bd9397b6f467f680db73ce1e /docs/tutorials/wiki2/src/basiclayout/setup.cfg
parent1e467e1bacc915d1e00bdce189e35f5afb568132 (diff)
downloadpyramid-a66593d25e77f1a0e749f5590b45498bbaa66755.tar.gz
pyramid-a66593d25e77f1a0e749f5590b45498bbaa66755.tar.bz2
pyramid-a66593d25e77f1a0e749f5590b45498bbaa66755.zip
- Fix apparent failures when calling ``pyramid.traversal.find_model(root,
path)`` or ``pyramid.traversal.traverse(path)`` when ``path`` is (erroneously) a Unicode object. The user is meant to pass these APIs a string object, never a Unicode object. In practice, however, users indeed pass Unicode. Because the string that is passed must be ASCII encodeable, now, if they pass a Unicode object, its data is eagerly converted to an ASCII string rather than being passed along to downstream code as a convenience to the user and to prevent puzzling second-order failures from cropping up (all failures will occur within ``pyramid.traversal.traverse`` rather than later down the line as the result of calling ``traversal_path``).
Diffstat (limited to 'docs/tutorials/wiki2/src/basiclayout/setup.cfg')
0 files changed, 0 insertions, 0 deletions