[cwconfig] Do not instantiate a repo with a scheduler in repository method
authorDenis Laxalde <denis.laxalde@logilab.fr>
Mon, 06 Mar 2017 15:13:44 +0100
changeset 12015 fe057cb231b6
parent 12014 116005b5fce9
child 12016 88ed82a25f8a
[cwconfig] Do not instantiate a repo with a scheduler in repository method None of the caller of this method need the repository to have a scheduler and having a scheduler should be something that's explicitly requested.
cubicweb/cwconfig.py
--- a/cubicweb/cwconfig.py	Mon Mar 06 14:50:00 2017 +0100
+++ b/cubicweb/cwconfig.py	Mon Mar 06 15:13:44 2017 +0100
@@ -1121,8 +1121,7 @@
     def repository(self, vreg=None):
         """Return a new bootstrapped repository."""
         from cubicweb.server.repository import Repository
-        from cubicweb.server.utils import scheduler
-        repo = Repository(self, scheduler=scheduler(), vreg=vreg)
+        repo = Repository(self, vreg=vreg)
         repo.bootstrap()
         return repo