diff options
| author | Chris McDonough <chrism@plope.com> | 2010-11-11 15:59:40 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-11-11 15:59:40 -0500 |
| commit | 5a972bc6a0c608395a495eb12e63020e2295ef6d (patch) | |
| tree | 46b2d7822fcb1c0a7847bd19c331f7149f9649bc /CHANGES.txt | |
| parent | 5efc45b6387f5ae6e6d3517b294964fb0c15d732 (diff) | |
| download | pyramid-5a972bc6a0c608395a495eb12e63020e2295ef6d.tar.gz pyramid-5a972bc6a0c608395a495eb12e63020e2295ef6d.tar.bz2 pyramid-5a972bc6a0c608395a495eb12e63020e2295ef6d.zip | |
Features
--------
- The ``settings`` object which used to be available only when
``request.settings.get_settings`` was called is now available as
``registry.settings`` (e.g. ``request.registry.settings`` in view code).
Deprecations
------------
- Obtaining the ``settings`` object via
``registry.{get|query}Utility(ISettings)`` is now deprecated. Instead,
obtain the ``settings`` object via the ``registry.settings`` attribute. A
backwards compatibility shim was added to the registry object to register
the settings object as an ISettings utility when ``setattr(registry,
'settings', foo)`` is called, but it will be removed in a later release.
- Obtaining the ``settings`` object via ``pyramid.settings.get_settings`` is
now deprecated. Obtain it as the ``settings`` attribute of the registry
now (obtain the registry via ``pyramid.threadlocal.get_registry`` or as
``request.registry``).
Diffstat (limited to 'CHANGES.txt')
| -rw-r--r-- | CHANGES.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 7b181f2c5..6c8972d55 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -17,6 +17,10 @@ Features ``route_url``. These are simple passthroughs for their respective functions in ``pyramid.url``. +- The ``settings`` object which used to be available only when + ``request.settings.get_settings`` was called is now available as + ``registry.settings`` (e.g. ``request.registry.settings`` in view code). + Bug Fixes --------- @@ -42,6 +46,21 @@ Documentation - Documented the ``matchdict`` and ``matched_route`` attributes of the request object in the Request API documentation. +Deprecations +------------ + +- Obtaining the ``settings`` object via + ``registry.{get|query}Utility(ISettings)`` is now deprecated. Instead, + obtain the ``settings`` object via the ``registry.settings`` attribute. A + backwards compatibility shim was added to the registry object to register + the settings object as an ISettings utility when ``setattr(registry, + 'settings', foo)`` is called, but it will be removed in a later release. + +- Obtaining the ``settings`` object via ``pyramid.settings.get_settings`` is + now deprecated. Obtain it as the ``settings`` attribute of the registry + now (obtain the registry via ``pyramid.threadlocal.get_registry`` or as + ``request.registry``). + 1.0a2 (2010-11-09) ================== |
