# HG changeset patch # User Aurelien Campeas # Date 1286359041 -7200 # Node ID 21468682f68881d7e6b1b9b21db363f2b7b6bd45 # Parent 66401ba9332afb7bc9f8ec22f198eb41863289c6 restore vital block of code (gone in 6384:89d5b339ebdd) diff -r 66401ba9332a -r 21468682f688 web/views/editcontroller.py --- a/web/views/editcontroller.py Tue Oct 05 10:17:24 2010 +0200 +++ b/web/views/editcontroller.py Wed Oct 06 11:57:21 2010 +0200 @@ -119,6 +119,16 @@ # no specific action, generic edition self._to_create = req.data['eidmap'] = {} self._pending_fields = req.data['pendingfields'] = set() + try: + for eid in req.edited_eids(): + # __type and eid + formparams = req.extract_entity_params(eid, minparams=2) + 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: