diff options
| author | Michael Merickel <michael@merickel.org> | 2017-04-30 19:10:12 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2017-04-30 19:10:12 -0500 |
| commit | 847fb70980aca38b0dc415e2b433618d7e42ac8d (patch) | |
| tree | ccfa4564f16277e77d1f3ca73b61d818b11cf701 /CHANGES.txt | |
| parent | 9028c99445d4c0a7ac24aaa84a6db499397e691a (diff) | |
| download | pyramid-847fb70980aca38b0dc415e2b433618d7e42ac8d.tar.gz pyramid-847fb70980aca38b0dc415e2b433618d7e42ac8d.tar.bz2 pyramid-847fb70980aca38b0dc415e2b433618d7e42ac8d.zip | |
improve flow of changes for configurator threadlocals
Diffstat (limited to 'CHANGES.txt')
| -rw-r--r-- | CHANGES.txt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index bcfcc3107..e30f185f0 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -60,18 +60,19 @@ Features requirement that the server is being run in this format so it may fail. See https://github.com/Pylons/pyramid/pull/2984 -- The threadlocals are now available inside any function invoked via - ``config.include``. This means the only config-time code that cannot rely - on threadlocals is code executed from non-actions inside the main. This - can be alleviated by invoking ``config.begin()`` and ``config.end()`` - appropriately. See https://github.com/Pylons/pyramid/pull/2989 - - The ``pyramid.config.Configurator`` can now be used as a context manager which will automatically push/pop threadlocals (similar to ``config.begin()`` and ``config.end()``). It will also automatically perform a ``config.commit()`` and thus it is only recommended to be used at the top-level of your app. See https://github.com/Pylons/pyramid/pull/2874 +- The threadlocals are now available inside any function invoked via + ``config.include``. This means the only config-time code that cannot rely + on threadlocals is code executed from non-actions inside the main. This + can be alleviated by invoking ``config.begin()`` and ``config.end()`` + appropriately or using the new context manager feature of the configurator. + See https://github.com/Pylons/pyramid/pull/2989 + Bug Fixes --------- |
