# HG changeset patch # User Sylvain Thénault # Date 1255631473 -7200 # Node ID 54aa8d13aab4329c39b95bae473e3412ce937fc0 # Parent ccd72f500daa411765bebb8e46d211807d3fbc79 clear eschema caches on schema changes diff -r ccd72f500daa -r 54aa8d13aab4 cwvreg.py --- a/cwvreg.py Thu Oct 15 20:30:40 2009 +0200 +++ b/cwvreg.py Thu Oct 15 20:31:13 2009 +0200 @@ -298,9 +298,11 @@ self.register_objects(searchpath, force_reload=False) # map lowered entity type names to their actual name self.case_insensitive_etypes = {} - for etype in self.schema.entities(): - etype = str(etype) + for eschema in self.schema.entities(): + etype = str(eschema) self.case_insensitive_etypes[etype.lower()] = etype + clear_cache(eschema, 'ordered_relations') + clear_cache(eschema, 'meta_attributes') def _set_schema(self, schema): """set instance'schema"""