summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-11-11 15:59:40 -0500
committerChris McDonough <chrism@plope.com>2010-11-11 15:59:40 -0500
commit5a972bc6a0c608395a495eb12e63020e2295ef6d (patch)
tree46b2d7822fcb1c0a7847bd19c331f7149f9649bc /docs/api
parent5efc45b6387f5ae6e6d3517b294964fb0c15d732 (diff)
downloadpyramid-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 'docs/api')
0 files changed, 0 insertions, 0 deletions