web/views/editcontroller.py
branchstable
changeset 6029 aac5dba278c7
parent 5877 0c7b7b76a84f
child 6033 09db6f4619c9
--- a/web/views/editcontroller.py	Wed Jul 28 11:37:02 2010 +0200
+++ b/web/views/editcontroller.py	Wed Jul 28 14:27:28 2010 +0200
@@ -177,7 +177,7 @@
         """edit / create / copy an entity and return its eid"""
         etype = formparams['__type']
         entity = self._cw.vreg['etypes'].etype_class(etype)(self._cw)
-        entity.eid = formparams['eid']
+        entity.eid = valerror_eid(formparams['eid'])
         is_main_entity = self._cw.form.get('__maineid') == formparams['eid']
         # let a chance to do some entity specific stuff
         entity.cw_adapt_to('IEditControl').pre_web_edit()