toolsutils.py
changeset 10331 6f25c7e4f19b
parent 9990 c84ad981fc4a
child 10589 7c23b7de2b8d
--- a/toolsutils.py	Fri Mar 13 16:57:32 2015 +0100
+++ b/toolsutils.py	Tue Jun 03 16:57:14 2014 +0200
@@ -257,18 +257,6 @@
       }),
     )
 
-def config_connect(appid, optconfig):
-    from cubicweb.dbapi import connect
-    from getpass import getpass
-    user = optconfig.user
-    if not user:
-        user = raw_input('login: ')
-    password = optconfig.password
-    if not password:
-        password = getpass('password: ')
-    return connect(login=user, password=password, host=optconfig.host, database=appid)
-
-
 ## cwshell helpers #############################################################
 
 class AbstractMatcher(object):