From 5f4649e9a3a1880c715ed88d19290a8d8c51152f Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Fri, 16 Dec 2016 20:40:11 -0600 Subject: add changelog for #2873 --- CHANGES.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 8f6e5b37a..4befe2658 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -140,6 +140,29 @@ Features ``--help`` output as well as enabling nicer documentation of their options. See https://github.com/Pylons/pyramid/pull/2864 +- Any deferred configuration action registered via ``config.action`` may now + depend on threadlocal state, such as asset overrides, being active when + the action is executed. + See https://github.com/Pylons/pyramid/pull/2873 + +- Asset specifications for directories passed to + ``config.add_translation_dirs`` now support overriding the entire asset + specification, including the folder name. Previously only the package name + was supported and the folder would always need to have the same name. + See https://github.com/Pylons/pyramid/pull/2873 + +- ``config.begin()`` will propagate the current threadlocal request through + as long as the registry is the same. For example: + + .. code-block:: python + + request = Request.blank(...) + config.begin(request) # pushes a request + config.begin() # propagates the previous request through unchanged + assert get_current_request() is request + + See https://github.com/Pylons/pyramid/pull/2873 + Bug Fixes --------- @@ -174,6 +197,11 @@ Bug Fixes style, even if a different plural function is defined in the relevant messages file. See https://github.com/Pylons/pyramid/pull/2859 +- The ``config.override_asset`` method now occurs during + ``pyramid.config.PHASE1_CONFIG`` such that it is ordered to execute before + any calls to ``config.add_translation_dirs``. + See https://github.com/Pylons/pyramid/pull/2873 + Deprecations ------------ -- cgit v1.2.3