server/serverctl.py
changeset 7061 bb2080547722
parent 7040 9b1f9bc74f5d
parent 7056 51f88f13d6f3
child 7112 bb27cc300040
--- a/server/serverctl.py	Fri Feb 18 15:26:00 2011 +0100
+++ b/server/serverctl.py	Tue Mar 08 18:32:19 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