server/sqlutils.py
changeset 4466 8b0ca7904820
parent 4436 294e084f1263
child 4474 55fe19813bb7
equal deleted inserted replaced
4465:18fb359f5c7a 4466:8b0ca7904820
    12 from os.path import exists
    12 from os.path import exists
    13 from warnings import warn
    13 from warnings import warn
    14 from datetime import datetime, date, timedelta
    14 from datetime import datetime, date, timedelta
    15 
    15 
    16 import logilab.common as lgc
    16 import logilab.common as lgc
       
    17 from logilab.common import db
    17 from logilab.common.shellutils import ProgressBar
    18 from logilab.common.shellutils import ProgressBar
    18 from logilab.common import db
       
    19 from logilab.common.adbh import get_adv_func_helper
    19 from logilab.common.adbh import get_adv_func_helper
    20 from logilab.common.sqlgen import SQLGenerator
    20 from logilab.common.sqlgen import SQLGenerator
       
    21 from logilab.common.date import todate, todatetime
    21 
    22 
    22 from indexer import get_indexer
    23 from indexer import get_indexer
    23 
    24 
    24 from cubicweb import Binary, ConfigurationError
    25 from cubicweb import Binary, ConfigurationError
    25 from cubicweb.utils import todate, todatetime
       
    26 from cubicweb.uilib import remove_html_tags
    26 from cubicweb.uilib import remove_html_tags
    27 from cubicweb.toolsutils import restrict_perms_to_user
    27 from cubicweb.toolsutils import restrict_perms_to_user
    28 from cubicweb.schema import PURE_VIRTUAL_RTYPES
    28 from cubicweb.schema import PURE_VIRTUAL_RTYPES
    29 from cubicweb.server import SQL_CONNECT_HOOKS
    29 from cubicweb.server import SQL_CONNECT_HOOKS
    30 from cubicweb.server.utils import crypt_password
    30 from cubicweb.server.utils import crypt_password