mirror of
https://github.com/marcus-alicia/iRedAdmin-Pro-SQL.git
synced 2026-05-27 07:29:44 +00:00
Update to 5.4
This commit is contained in:
@@ -5,21 +5,21 @@
|
||||
import os
|
||||
import sys
|
||||
import logging
|
||||
import web
|
||||
|
||||
debug = False
|
||||
|
||||
# Set True to print SQL queries.
|
||||
web.config.debug = debug
|
||||
|
||||
os.environ['LC_ALL'] = 'C'
|
||||
|
||||
rootdir = os.path.abspath(os.path.dirname(__file__)) + '/../'
|
||||
sys.path.insert(0, rootdir)
|
||||
|
||||
import web
|
||||
import settings
|
||||
from libs import iredutils
|
||||
|
||||
# Set True to print SQL queries.
|
||||
web.config.debug = debug
|
||||
|
||||
backend = settings.backend
|
||||
if backend in ['ldap', 'mysql']:
|
||||
sql_dbn = 'mysql'
|
||||
|
||||
Reference in New Issue
Block a user