use pluginapi.get_config
This commit is contained in:
parent
8e7f78933e
commit
2b55a0f865
@ -16,14 +16,14 @@
|
|||||||
import ldap
|
import ldap
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from mediagoblin import mg_globals
|
from mediagoblin.tools import pluginapi
|
||||||
|
|
||||||
_log = logging.getLogger(__name__)
|
_log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class LDAP(object):
|
class LDAP(object):
|
||||||
def __init__(self):
|
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):
|
def _connect(self, server):
|
||||||
_log.info('Connecting to {0}.'.format(server['LDAP_SERVER_URI']))
|
_log.info('Connecting to {0}.'.format(server['LDAP_SERVER_URI']))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user