equal
deleted
inserted
replaced
275 def set_schema(self, schema): |
275 def set_schema(self, schema): |
276 """set instance'schema and load application objects""" |
276 """set instance'schema and load application objects""" |
277 self.schema = schema |
277 self.schema = schema |
278 clear_cache(self, 'rqlhelper') |
278 clear_cache(self, 'rqlhelper') |
279 # now we can load application's web objects |
279 # now we can load application's web objects |
280 self.register_objects(self.config.vregistry_path()) |
280 searchpath = self.config.vregistry_path() |
|
281 self.reset(searchpath, force_reload=False) |
|
282 self.register_objects(searchpath, force_reload=False) |
281 # map lowered entity type names to their actual name |
283 # map lowered entity type names to their actual name |
282 self.case_insensitive_etypes = {} |
284 self.case_insensitive_etypes = {} |
283 for etype in self.schema.entities(): |
285 for etype in self.schema.entities(): |
284 etype = str(etype) |
286 etype = str(etype) |
285 self.case_insensitive_etypes[etype.lower()] = etype |
287 self.case_insensitive_etypes[etype.lower()] = etype |