[c-c] use logilab.database, not lgc.db stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 26 May 2010 12:31:39 +0200
branchstable
changeset 5586 aabe082fee02
parent 5585 e1cbf6b304ea
child 5587 72679e450f6d
[c-c] use logilab.database, not lgc.db
server/serverctl.py
--- a/server/serverctl.py	Wed May 26 12:31:37 2010 +0200
+++ b/server/serverctl.py	Wed May 26 12:31:39 2010 +0200
@@ -43,7 +43,7 @@
     given server.serverconfig
     """
     from getpass import getpass
-    from logilab.common.db import get_connection
+    from logilab.database import get_connection
     dbhost = source.get('db-host')
     if dbname is None:
         dbname = source['db-name']
@@ -393,7 +393,7 @@
     def run(self, args):
         print '\n'+underline_title('Initializing the system database')
         from cubicweb.server import init_repository
-        from logilab.common.db import get_connection
+        from logilab.database import get_connection
         appid = pop_arg(args, msg='No instance specified !')
         config = ServerConfiguration.config_for(appid)
         try: