--- a/web/views/editcontroller.py Fri Oct 01 16:53:35 2010 +0200
+++ b/web/views/editcontroller.py Fri Oct 01 17:27:54 2010 +0200
@@ -119,21 +119,6 @@
# no specific action, generic edition
self._to_create = req.data['eidmap'] = {}
self._pending_fields = req.data['pendingfields'] = set()
- try:
- methodname = req.form.pop('__method', None)
- for eid in req.edited_eids():
- # __type and eid
- formparams = req.extract_entity_params(eid, minparams=2)
- if methodname is not None:
- entity = req.entity_from_eid(eid)
- method = getattr(entity, methodname)
- method(formparams)
- eid = self.edit_entity(formparams)
- except (RequestError, NothingToEdit), ex:
- if '__linkto' in req.form and 'eid' in req.form:
- self.execute_linkto()
- elif not ('__delete' in req.form or '__insert' in req.form):
- raise ValidationError(None, {None: unicode(ex)})
# handle relations in newly created entities
if self._pending_fields:
for form, field in self._pending_fields: