cwvreg.py
branchstable
changeset 3692 54aa8d13aab4
parent 3641 cf30e4498674
child 3702 29cce43d6af2
--- 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"""