server/serverctl.py
branchstable
changeset 7056 51f88f13d6f3
parent 7036 63386b35ec69
child 7061 bb2080547722
--- a/server/serverctl.py	Tue Mar 08 17:55:38 2011 +0100
+++ b/server/serverctl.py	Tue Mar 08 18:08:12 2011 +0100
@@ -130,7 +130,7 @@
 
 def repo_cnx(config):
     """return a in-memory repository and a db api connection it"""
-    from cubicweb.dbapi import in_memory_cnx
+    from cubicweb.dbapi import in_memory_repo_cnx
     from cubicweb.server.utils import manager_userpasswd
     try:
         login = config.sources()['admin']['login']
@@ -139,7 +139,7 @@
         login, pwd = manager_userpasswd()
     while True:
         try:
-            return in_memory_cnx(config, login, password=pwd)
+            return in_memory_repo_cnx(config, login, password=pwd)
         except AuthenticationError:
             print '-> Error: wrong user/password.'
             # reset cubes else we'll have an assertion error on next retry