cwvreg.py
changeset 2293 7ded2a1416e4
parent 2234 1fbcf202882d
parent 2273 daf6e178659f
child 2389 c399bd6a9c38
equal deleted inserted replaced
2235:d5987f75c97c 2293:7ded2a1416e4
    94         """set application'schema and load application objects"""
    94         """set application'schema and load application objects"""
    95         self.schema = schema
    95         self.schema = schema
    96         clear_cache(self, 'rqlhelper')
    96         clear_cache(self, 'rqlhelper')
    97         # now we can load application's web objects
    97         # now we can load application's web objects
    98         self.register_objects(self.config.vregistry_path())
    98         self.register_objects(self.config.vregistry_path())
       
    99         # map lowered entity type names to their actual name
       
   100         self.case_insensitive_etypes = {}
       
   101         for etype in self.schema.entities():
       
   102             etype = str(etype)
       
   103             self.case_insensitive_etypes[etype.lower()] = etype
    99 
   104 
   100     def update_schema(self, schema):
   105     def update_schema(self, schema):
   101         """update .schema attribute on registered objects, necessary for some
   106         """update .schema attribute on registered objects, necessary for some
   102         tests
   107         tests
   103         """
   108         """