[utils] Do not pass a tasks manager to Repository in admincnx()
authorDenis Laxalde <denis.laxalde@logilab.fr>
Fri, 24 Feb 2017 10:16:17 +0100
changeset 11984 55f57038e553
parent 11983 5de78b6fff2e
child 11985 08398df041b4
[utils] Do not pass a tasks manager to Repository in admincnx() We do not call repo.start_looping_tasks() for the instantiated repository, so a tasks manager is useless.
cubicweb/utils.py
--- a/cubicweb/utils.py	Thu Feb 23 18:02:33 2017 +0100
+++ b/cubicweb/utils.py	Fri Feb 24 10:16:17 2017 +0100
@@ -54,13 +54,12 @@
 def admincnx(appid):
     from cubicweb.cwconfig import CubicWebConfiguration
     from cubicweb.server.repository import Repository
-    from cubicweb.server.utils import TasksManager
     config = CubicWebConfiguration.config_for(appid)
 
     login = config.default_admin_config['login']
     password = config.default_admin_config['password']
 
-    repo = Repository(config, TasksManager())
+    repo = Repository(config)
     repo.bootstrap()
     session = repo.new_session(login, password=password)
     return session.new_cnx()