From ed6ddcb8c7badca425093d85e23791f942dd9a34 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Wed, 29 Aug 2018 02:38:13 -0500 Subject: update docs and changelog --- CHANGES.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'CHANGES.rst') diff --git a/CHANGES.rst b/CHANGES.rst index d0dbbe5c0..d3ffa19fc 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -57,6 +57,12 @@ 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 + Bug Fixes --------- @@ -107,6 +113,13 @@ Backward Incompatibilities of previous ``pyramid.httpexceptions.HTTPFound``. See https://github.com/Pylons/pyramid/pull/3328 +- Accept-handling has undergone work to get rid of undefined behaviors and + runtime exceptions. As part of this effort, it is now a hard error to pass + any media ranges to the ``accept`` predicate on routes and views. + Previously, depending on the version of WebOb, this would error on certain + requests or it would work in undefined ways. + https://github.com/Pylons/pyramid/pull/3326 + Documentation Changes --------------------- -- cgit v1.2.3 From 2497d05c17016ee5dc7cb5900399a28f1845c8cc Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Mon, 3 Sep 2018 21:20:38 -0500 Subject: support multiple types in the route predicate --- CHANGES.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CHANGES.rst') diff --git a/CHANGES.rst b/CHANGES.rst index d3ffa19fc..592ab8c63 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -63,6 +63,10 @@ Features 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 + Bug Fixes --------- -- cgit v1.2.3 From 4a9f4f43684c3a754f43935b97013057340c305d Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Wed, 10 Oct 2018 00:04:43 -0500 Subject: deprecate range support --- CHANGES.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'CHANGES.rst') diff --git a/CHANGES.rst b/CHANGES.rst index 3934c5aed..e1f782e60 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -113,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 -------------------------- -- cgit v1.2.3