server/__init__.py
branchstable
changeset 7056 51f88f13d6f3
parent 6427 c8a5ac2d1eaa
child 7061 bb2080547722
child 7079 6024de6094f6
--- a/server/__init__.py	Tue Mar 08 17:55:38 2011 +0100
+++ b/server/__init__.py	Tue Mar 08 18:08:12 2011 +0100
@@ -121,7 +121,7 @@
     with the minimal set of entities (ie at least the schema, base groups and
     a initial user)
     """
-    from cubicweb.dbapi import in_memory_cnx
+    from cubicweb.dbapi import in_memory_repo_cnx
     from cubicweb.server.repository import Repository
     from cubicweb.server.utils import manager_userpasswd
     from cubicweb.server.sqlutils import sqlexec, sqlschema, sqldropschema
@@ -185,7 +185,7 @@
     repo.shutdown()
     # reloging using the admin user
     config._cubes = None # avoid assertion error
-    repo, cnx = in_memory_cnx(config, login, password=pwd)
+    repo, cnx = in_memory_repo_cnx(config, login, password=pwd)
     repo.system_source.eid = ssource.eid # redo this manually
     # trigger vreg initialisation of entity classes
     config.cubicweb_appobject_path = set(('entities',))