cubicweb/server/repository.py
branch3.24
changeset 11819 a85b7a898e13
parent 11811 f09efeead7f9
child 11821 7534b32c45e3
--- a/cubicweb/server/repository.py	Wed Nov 09 23:00:00 2016 +0100
+++ b/cubicweb/server/repository.py	Tue Nov 15 12:20:02 2016 +0100
@@ -157,6 +157,7 @@
 
     def __init__(self, config, tasks_manager=None, vreg=None):
         self.config = config
+        self.sources_by_eid = {}
         if vreg is None:
             vreg = cwvreg.CWRegistryStore(config)
         self.vreg = vreg
@@ -264,7 +265,6 @@
     # internals ###############################################################
 
     def init_sources_from_database(self):
-        self.sources_by_eid = {}
         if self.config.quick_start or 'CWSource' not in self.schema:  # 3.10 migration
             self.system_source.init_creating()
             return