[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.
--- 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()