equal
deleted
inserted
replaced
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 """ |