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