web/views/editforms.py
branchstable
changeset 3346 b1fd9d4ef579
parent 3331 8e63b72287b1
child 3355 39ea15e4589a
--- a/web/views/editforms.py	Mon Sep 21 18:00:28 2009 +0200
+++ b/web/views/editforms.py	Mon Sep 21 18:02:21 2009 +0200
@@ -326,11 +326,9 @@
 
     def call(self, **kwargs):
         """creation view for an entity"""
+        # at this point we know etype is a valid entity type, thanks to our
+        # selector
         etype = kwargs.pop('etype', self.req.form.get('etype'))
-        try:
-            etype = self.vreg.case_insensitive_etypes[etype.lower()]
-        except KeyError:
-            raise RequestError(self.req._('no such entity type %s') % etype)
         entity = self.vreg['etypes'].etype_class(etype)(self.req)
         self.initialize_varmaker()
         entity.eid = self.varmaker.next()