Michael Merickel
2016-12-17 5f4649e9a3a1880c715ed88d19290a8d8c51152f
add changelog for #2873
1 files modified
28 ■■■■■ changed files
CHANGES.txt 28 ●●●●● patch | view | raw | blame | history
CHANGES.txt
@@ -140,6 +140,29 @@
  ``--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 @@
  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
------------