diff options
| author | Michael Merickel <github@m.merickel.org> | 2018-10-14 21:03:15 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-14 21:03:15 -0500 |
| commit | 433efe06191a7007ca8c5bf8fafee5c7c1439ebb (patch) | |
| tree | 6765f2177ba5fd0352380db05548d1171517d08e /CHANGES.rst | |
| parent | d8a08302f3b38da8a5d9b854afbe346d84c534c2 (diff) | |
| parent | 364bd7dfef2c6599b126671784b23f9fb7fa6dea (diff) | |
| download | pyramid-433efe06191a7007ca8c5bf8fafee5c7c1439ebb.tar.gz pyramid-433efe06191a7007ca8c5bf8fafee5c7c1439ebb.tar.bz2 pyramid-433efe06191a7007ca8c5bf8fafee5c7c1439ebb.zip | |
Merge pull request #3326 from mmerickel/fix-deprecated-accept-predicate
Overhaul HTTP Accept (mime type) handling in Pyramid
Diffstat (limited to 'CHANGES.rst')
| -rw-r--r-- | CHANGES.rst | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index cf13bd6b5..9fecafd2e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -57,6 +57,16 @@ Features - Add support for Python 3.7. Add testing on Python 3.8 with allowed failures. See https://github.com/Pylons/pyramid/pull/3333 +- Added the ``pyramid.config.Configurator.add_accept_view_order`` directive, + allowing users to specify media type preferences in ambiguous situations + such as when several views match. A default ordering is defined for media + types that prefers human-readable html/text responses over JSON. + See https://github.com/Pylons/pyramid/pull/3326 + +- Support a list of media types in the ``accept`` predicate used in + ``pyramid.config.Configurator.add_route``. + See https://github.com/Pylons/pyramid/pull/3326 + - Added ``pyramid.session.JSONSerializer``. See "Upcoming Changes to ISession in Pyramid 2.0" in the "Sessions" chapter of the documentation for more information about this feature. @@ -103,6 +113,17 @@ Deprecations implementation if you're still using these features. See https://github.com/Pylons/pyramid/pull/3353 +- Media ranges are deprecated in the ``accept`` argument of + ``pyramid.config.Configurator.add_route``. Use a list of explicit + media types to ``add_route`` to support multiple types. + +- Media ranges are deprecated in the ``accept`` argument of + ``pyramid.config.Configurator.add_view``. There is no replacement for + ranges to ``add_view``, but after much discussion the workflow is + fundamentally ambiguous in the face of various client-supplied values for + the ``Accept`` header. + See https://github.com/Pylons/pyramid/pull/3326 + Backward Incompatibilities -------------------------- |
