cwvreg.py
changeset 2293 7ded2a1416e4
parent 2234 1fbcf202882d
parent 2273 daf6e178659f
child 2389 c399bd6a9c38
--- a/cwvreg.py	Thu Jul 02 10:36:25 2009 +0200
+++ b/cwvreg.py	Mon Jul 06 19:55:18 2009 +0200
@@ -96,6 +96,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