use pluginapi.get_config
authorRodney Ewing <ewing.rj@gmail.com>
Tue, 9 Jul 2013 18:48:36 +0000 (11:48 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Thu, 15 Aug 2013 23:01:03 +0000 (16:01 -0700)
mediagoblin/plugins/ldap/tools.py

index 3f15c07a9678a679ac216938d82b64588e1ee341..35a681ec3b2ca8e177c1b680a213c48c296e59c9 100644 (file)
 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']))