From bbdc690a1f69c9e7f286a5fbd0cb64403d51c721 Mon Sep 17 00:00:00 2001 From: Marian Sigler Date: Fri, 28 Sep 2012 01:41:09 +0200 Subject: move ldap settings from account.py to config --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app.py') diff --git a/app.py b/app.py index 4a3a962..4c93ccf 100644 --- a/app.py +++ b/app.py @@ -20,8 +20,8 @@ app.all_services = account.SERVICES #TODO: take that from our json file or so @app.before_request def ldap_connect(): - g.ldap = account.AccountService(account.LDAP_HOST, account.LDAP_BASE_DN, - account.LDAP_ADMIN_USER, account.LDAP_ADMIN_PASS, app.all_services) + g.ldap = account.AccountService(app.config['LDAP_HOST'], app.config['LDAP_BASE_DN'], + app.config['LDAP_ADMIN_USER'], app.config['LDAP_ADMIN_PASS'], app.all_services) g.user = None -- cgit v1.2.3-1-g7c22