From 84df816470b6745c628c177c99dee9fa844812c4 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 16 Nov 2010 20:51:56 -0500 Subject: point at correct location of get_current_registry --- CHANGES.txt | 2 +- pyramid/settings.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 28637c1a7..2737e6893 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -21,7 +21,7 @@ Deprecations ------------ - The ``pyramid.settings.get_settings`` API is now deprecated. Use - ``pyramid.threadlocals.get_registry().settings`` instead or use the + ``pyramid.threadlocals.get_current_registry().settings`` instead or use the ``settings`` attribute of the registry available from the request (``request.registry.settings``). diff --git a/pyramid/settings.py b/pyramid/settings.py index d6b0a6470..64b108421 100644 --- a/pyramid/settings.py +++ b/pyramid/settings.py @@ -78,8 +78,8 @@ def get_settings(): performs the same duty. .. warning:: This method is deprecated as of Pyramid 1.0. Use - ``pyramid.threadlocals.get_registry().settings`` instead or use the - ``settings`` attribute of the registry available from the request + ``pyramid.threadlocals.get_current_registry().settings`` instead or use ' + the ``settings`` attribute of the registry available from the request (``request.registry.settings``). """ reg = get_current_registry() @@ -88,8 +88,8 @@ def get_settings(): deprecated( 'get_settings', '(pyramid.settings.get_settings is deprecated as of Pyramid 1.0. Use' - '``pyramid.threadlocals.get_registry().settings`` instead or use the ' - '``settings`` attribute of the registry available from the request ' + '``pyramid.threadlocals.get_current_registry().settings`` instead or use ' + 'the ``settings`` attribute of the registry available from the request ' '(``request.registry.settings``)).') def asbool(s): -- cgit v1.2.3