server/serverctl.py
changeset 4848 41f84eea63c9
parent 4845 dc351b96f596
child 4886 18a1735c283c
--- a/server/serverctl.py	Tue Mar 09 11:42:06 2010 +0100
+++ b/server/serverctl.py	Tue Mar 09 11:54:27 2010 +0100
@@ -70,7 +70,7 @@
         cnx.logged_user = user
     except AttributeError:
         # C object, __slots__
-        from logilab.db import _SimpleConnectionWrapper
+        from logilab.database import _SimpleConnectionWrapper
         cnx = _SimpleConnectionWrapper(cnx)
         cnx.logged_user = user
     return cnx
@@ -83,7 +83,7 @@
     create/drop the instance database)
     """
     if dbms_system_base:
-        from logilab.db import get_db_helper
+        from logilab.database import get_db_helper
         system_db = get_db_helper(source['db-driver']).system_database()
         return source_cnx(source, system_db, special_privs=special_privs, verbose=verbose)
     return source_cnx(source, special_privs=special_privs, verbose=verbose)
@@ -93,7 +93,7 @@
     or a database
     """
     import logilab.common as lgp
-    from logilab.db import get_db_helper
+    from logilab.database import get_db_helper
     lgp.USE_MX_DATETIME = False
     special_privs = ''
     driver = source['db-driver']
@@ -210,7 +210,7 @@
 
     def cleanup(self):
         """remove instance's configuration and database"""
-        from logilab.db import get_db_helper
+        from logilab.database import get_db_helper
         source = self.config.sources()['system']
         dbname = source['db-name']
         helper = get_db_helper(source['db-driver'])
@@ -293,7 +293,7 @@
         )
     def run(self, args):
         """run the command with its specific arguments"""
-        from logilab.db import get_db_helper
+        from logilab.database import get_db_helper
         verbose = self.get('verbose')
         automatic = self.get('automatic')
         appid = pop_arg(args, msg='No instance specified !')