diff options
| author | Michael Merickel <michael@merickel.org> | 2016-12-16 20:40:11 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2016-12-21 10:26:14 -0600 |
| commit | 5f4649e9a3a1880c715ed88d19290a8d8c51152f (patch) | |
| tree | 2e366a6a7dd5d4c9cd22a9474c4ecd4ca23f37d9 | |
| parent | 804eb0edf94d971acc7c2efccd019e24735a882e (diff) | |
| download | pyramid-5f4649e9a3a1880c715ed88d19290a8d8c51152f.tar.gz pyramid-5f4649e9a3a1880c715ed88d19290a8d8c51152f.tar.bz2 pyramid-5f4649e9a3a1880c715ed88d19290a8d8c51152f.zip | |
add changelog for #2873
| -rw-r--r-- | CHANGES.txt | 28 |
1 files changed, 28 insertions, 0 deletions
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 ------------ |
