cwvreg.py
branchstable
changeset 2273 daf6e178659f
parent 2223 59588e2d5cd1
child 2293 7ded2a1416e4
--- a/cwvreg.py	Mon Jul 06 10:56:13 2009 +0200
+++ b/cwvreg.py	Mon Jul 06 10:56:43 2009 +0200
@@ -76,6 +76,11 @@
         clear_cache(self, 'rqlhelper')
         # now we can load application's web objects
         self.register_objects(self.config.vregistry_path())
+        # map lowered entity type names to their actual name
+        self.case_insensitive_etypes = {}
+        for etype in self.schema.entities():
+            etype = str(etype)
+            self.case_insensitive_etypes[etype.lower()] = etype
 
     def update_schema(self, schema):
         """update .schema attribute on registered objects, necessary for some