cwvreg.py
branchstable
changeset 3692 54aa8d13aab4
parent 3641 cf30e4498674
child 3702 29cce43d6af2
equal deleted inserted replaced
3691:ccd72f500daa 3692:54aa8d13aab4
   296         searchpath = self.config.vregistry_path()
   296         searchpath = self.config.vregistry_path()
   297         self.reset(searchpath, force_reload=False)
   297         self.reset(searchpath, force_reload=False)
   298         self.register_objects(searchpath, force_reload=False)
   298         self.register_objects(searchpath, force_reload=False)
   299         # map lowered entity type names to their actual name
   299         # map lowered entity type names to their actual name
   300         self.case_insensitive_etypes = {}
   300         self.case_insensitive_etypes = {}
   301         for etype in self.schema.entities():
   301         for eschema in self.schema.entities():
   302             etype = str(etype)
   302             etype = str(eschema)
   303             self.case_insensitive_etypes[etype.lower()] = etype
   303             self.case_insensitive_etypes[etype.lower()] = etype
       
   304             clear_cache(eschema, 'ordered_relations')
       
   305             clear_cache(eschema, 'meta_attributes')
   304 
   306 
   305     def _set_schema(self, schema):
   307     def _set_schema(self, schema):
   306         """set instance'schema"""
   308         """set instance'schema"""
   307         self.schema = schema
   309         self.schema = schema
   308         clear_cache(self, 'rqlhelper')
   310         clear_cache(self, 'rqlhelper')