diff options
| author | Chris McDonough <chrism@plope.com> | 2010-11-18 16:56:05 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-11-18 16:56:05 -0500 |
| commit | a66593d25e77f1a0e749f5590b45498bbaa66755 (patch) | |
| tree | ea935aba1b7985e2bd9397b6f467f680db73ce1e /CHANGES.txt | |
| parent | 1e467e1bacc915d1e00bdce189e35f5afb568132 (diff) | |
| download | pyramid-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 'CHANGES.txt')
| -rw-r--r-- | CHANGES.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 14b2c569d..0720034b2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -28,6 +28,18 @@ Bug Fixes - The ``pyramid_alchemy`` paster template had a typo, preventing an import from working. +- 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``). + Backwards Incompatibilities --------------------------- |
