devtools/__init__.py
changeset 9576 5d4f662f5e31
parent 9519 32662203e334
child 9635 aaf099172bb9
--- a/devtools/__init__.py	Wed Mar 05 11:22:20 2014 +0100
+++ b/devtools/__init__.py	Wed Mar 05 12:35:37 2014 +0100
@@ -402,12 +402,12 @@
 
     def get_cnx(self):
         """return Connection object on the current repository"""
-        from cubicweb.dbapi import _repo_connect
+        from cubicweb.repoapi import connect
         repo = self.get_repo()
         sources = self.config.read_sources_file()
         login  = unicode(sources['admin']['login'])
         password = sources['admin']['password'] or 'xxx'
-        cnx = _repo_connect(repo, login, password=password)
+        cnx = connect(repo, login, password=password)
         return cnx
 
     def get_repo_and_cnx(self, db_id=DEFAULT_EMPTY_DB_ID):