cwvreg.py
branchstable
changeset 2273 daf6e178659f
parent 2223 59588e2d5cd1
child 2293 7ded2a1416e4
equal deleted inserted replaced
2272:f27a3a75be0d 2273:daf6e178659f
    74         """set application'schema and load application objects"""
    74         """set application'schema and load application objects"""
    75         self.schema = schema
    75         self.schema = schema
    76         clear_cache(self, 'rqlhelper')
    76         clear_cache(self, 'rqlhelper')
    77         # now we can load application's web objects
    77         # now we can load application's web objects
    78         self.register_objects(self.config.vregistry_path())
    78         self.register_objects(self.config.vregistry_path())
       
    79         # map lowered entity type names to their actual name
       
    80         self.case_insensitive_etypes = {}
       
    81         for etype in self.schema.entities():
       
    82             etype = str(etype)
       
    83             self.case_insensitive_etypes[etype.lower()] = etype
    79 
    84 
    80     def update_schema(self, schema):
    85     def update_schema(self, schema):
    81         """update .schema attribute on registered objects, necessary for some
    86         """update .schema attribute on registered objects, necessary for some
    82         tests
    87         tests
    83         """
    88         """