Commits

Zhang Huangbin committed cd96fce

Code cleanup.

Comments (0)

Files changed (24)

controllers/base.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import web
 
 session = web.config.get('_session')

controllers/ldap/admin.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import web
 from controllers import base
 from libs import languages

controllers/ldap/basic.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import os
 import time
 import web

controllers/ldap/domain.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import web
 from controllers import base
 from libs import iredutils
-from libs.ldaplib import admin, domain as domainlib, user, connUtils, ldaputils
+from libs.ldaplib import domain as domainlib, connUtils, ldaputils
 
 cfg = web.iredconfig
 session = web.config.get('_session')

controllers/ldap/user.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import web
 from controllers import base
 from libs import iredutils

controllers/mysql/admin.py

 
 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import web
 from libs import languages, iredutils
 from libs.mysql import decorators, admin as adminlib, domain as domainlib

controllers/mysql/basic.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import os
 import time
 from socket import getfqdn

controllers/mysql/domain.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import web
 from controllers import base
 from libs import iredutils
-from libs.mysql import decorators, domain as domainlib, admin as adminlib
+from libs.mysql import domain as domainlib
 
 cfg = web.iredconfig
 session = web.config.get('_session')

controllers/mysql/user.py

 
 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import web
 from libs import iredutils
 from libs.mysql import decorators, user as userlib, domain as domainlib

libs/iredutils.py

 # encoding: utf-8
 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import gettext
 import re
 import time

libs/ldaplib/admin.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import ldap, ldap.filter
 import web
 from libs import iredutils

libs/ldaplib/auth.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import web
 import ldap, ldap.filter
 

libs/ldaplib/connUtils.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import types
 import web
-import ldap, ldif
+import ldap
 from ldap.filter import escape_filter_chars
 from libs import iredutils
 from libs.ldaplib import core, ldaputils, decorators, attrs, deltree

libs/ldaplib/decorators.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import ldap
 import web
 from libs import iredutils

libs/ldaplib/domain.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import ldap
 import types
 import web

libs/ldaplib/iredldif.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import web
 from libs import iredutils
 from libs.ldaplib import ldaputils

libs/ldaplib/user.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import types
 import ldap
 import ldap.filter

libs/mysql/admin.py

 
 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import types
 import web
 from libs import iredutils

libs/mysql/connUtils.py

 
 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import web
 
 from libs import iredutils

libs/mysql/core.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import web
 from libs import iredutils, md5crypt
 

libs/mysql/decorators.py

 
 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import web
 from libs import iredutils
 from libs.mysql import core

libs/mysql/domain.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import types
 import web
 from libs import iredutils

libs/mysql/user.py

 
 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import types
 import web
 from libs import iredutils

libs/panel/log.py

 # Author: Zhang Huangbin <zhb@iredmail.org>
 
-import sys
 import web
 from controllers import base
 from libs import iredutils