cwvreg.py
changeset 2761 7c583d02917b
parent 2760 30063071aee0
child 2771 8074dd88e21b
child 2906 677fa98659a8
equal deleted inserted replaced
2760:30063071aee0 2761:7c583d02917b
   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