From: Rodney Ewing Date: Tue, 9 Jul 2013 18:48:36 +0000 (-0700) Subject: use pluginapi.get_config X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2b55a0f8654d45ca109160459952a7e8bfd1f8f0;p=mediagoblin.git use pluginapi.get_config --- diff --git a/mediagoblin/plugins/ldap/tools.py b/mediagoblin/plugins/ldap/tools.py index 3f15c07a..35a681ec 100644 --- a/mediagoblin/plugins/ldap/tools.py +++ b/mediagoblin/plugins/ldap/tools.py @@ -16,14 +16,14 @@ import ldap import logging -from mediagoblin import mg_globals +from mediagoblin.tools import pluginapi _log = logging.getLogger(__name__) class LDAP(object): def __init__(self): - self.ldap_settings = mg_globals.global_config['plugins']['mediagoblin.plugins.ldap'] + self.ldap_settings = pluginapi.get_config('mediagoblin.plugins.ldap') def _connect(self, server): _log.info('Connecting to {0}.'.format(server['LDAP_SERVER_URI']))