equal
deleted
inserted
replaced
133 if uri == 'admin': |
133 if uri == 'admin': |
134 # not an actual source |
134 # not an actual source |
135 continue |
135 continue |
136 source = self.get_source(uri, source_config) |
136 source = self.get_source(uri, source_config) |
137 self.sources_by_uri[uri] = source |
137 self.sources_by_uri[uri] = source |
138 self.sources.append(source) |
138 if config.source_enabled(uri): |
|
139 self.sources.append(source) |
139 self.system_source = self.sources_by_uri['system'] |
140 self.system_source = self.sources_by_uri['system'] |
140 # ensure system source is the first one |
141 # ensure system source is the first one |
141 self.sources.remove(self.system_source) |
142 self.sources.remove(self.system_source) |
142 self.sources.insert(0, self.system_source) |
143 self.sources.insert(0, self.system_source) |
143 # cache eid -> type / source |
144 # cache eid -> type / source |
232 # trigger full reload of all appobjects |
233 # trigger full reload of all appobjects |
233 self.vreg.set_schema(schema) |
234 self.vreg.set_schema(schema) |
234 else: |
235 else: |
235 self.vreg._set_schema(schema) |
236 self.vreg._set_schema(schema) |
236 self.querier.set_schema(schema) |
237 self.querier.set_schema(schema) |
237 for source in self.sources: |
238 # don't use self.sources, we may want to give schema even to disabled |
|
239 # sources |
|
240 for source in self.sources_by_uri.values(): |
238 source.set_schema(schema) |
241 source.set_schema(schema) |
239 self.schema = schema |
242 self.schema = schema |
240 |
243 |
241 def fill_schema(self): |
244 def fill_schema(self): |
242 """lod schema from the repository""" |
245 """lod schema from the repository""" |