diff options
| author | Michael Merickel <michael@merickel.org> | 2020-01-09 22:53:46 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2020-01-09 22:53:46 -0600 |
| commit | 68c1929bbfec92f3fff1985226d88f41b02e5a4f (patch) | |
| tree | 99d1d6c463da8e36d0d7a9ddd60938eff1930f2d /CHANGES.rst | |
| parent | 9ba492843ef8685b5493516a9c740b6aa5a9e55a (diff) | |
| parent | 912bccb8b715b0249c2c23736c467eaee14a4e3b (diff) | |
| download | pyramid-68c1929bbfec92f3fff1985226d88f41b02e5a4f.tar.gz pyramid-68c1929bbfec92f3fff1985226d88f41b02e5a4f.tar.bz2 pyramid-68c1929bbfec92f3fff1985226d88f41b02e5a4f.zip | |
Merge branch 'master' into security-docs
Diffstat (limited to 'CHANGES.rst')
| -rw-r--r-- | CHANGES.rst | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index 9f16b06ea..0e32a40c6 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -71,6 +71,29 @@ Features - Fix ``DeprecationWarning`` emitted by using the ``imp`` module. See https://github.com/Pylons/pyramid/pull/3553 +- Properties created via ``config.add_request_method(..., property=True)`` or + ``request.set_property`` used to be readonly. They can now be overridden + via ``request.foo = ...`` and until the value is deleted it will return + the overridden value. This is most useful when mocking request properties + in testing. + See https://github.com/Pylons/pyramid/pull/3559 + +- Finished callbacks are now executed as part of the ``closer`` that is + invoked as part of ``pyramid.scripting.prepare`` and + ``pyramid.paster.bootstrap``. + See https://github.com/Pylons/pyramid/pull/3561 + +- Added ``pyramid.request.RequestLocalCache`` which can be used to create + simple objects that are shared across requests and can be used to store + per-request data. This is useful when the source of data is external to + the request itself. Often a reified property is used on a request via + ``pyramid.config.Configurator.add_request_method``, or + ``pyramid.decorator.reify``, and these work great when the data is + generated on-demand when accessing the request property. However, often + the case is that the data is generated when accessing some other system + and then we want to cache the data for the duration of the request. + See https://github.com/Pylons/pyramid/pull/3561 + Deprecations ------------ |
