devtools/__init__.py
changeset 10331 6f25c7e4f19b
parent 10235 684215aca046
child 10354 635cfac73d28
--- a/devtools/__init__.py	Fri Mar 13 16:57:32 2015 +0100
+++ b/devtools/__init__.py	Tue Jun 03 16:57:14 2014 +0200
@@ -394,9 +394,9 @@
 
     def _new_repo(self, config):
         """Factory method to create a new Repository Instance"""
-        from cubicweb.dbapi import in_memory_repo
+        from cubicweb.repoapi import _get_inmemory_repo
         config._cubes = None
-        repo = in_memory_repo(config)
+        repo = _get_inmemory_repo(config)
         # extending Repository class
         repo._has_started = False
         repo._needs_refresh = False