equal
deleted
inserted
replaced
200 for formparams in self._ordered_formparams(): |
200 for formparams in self._ordered_formparams(): |
201 eid = self.edit_entity(formparams) |
201 eid = self.edit_entity(formparams) |
202 except (RequestError, NothingToEdit) as ex: |
202 except (RequestError, NothingToEdit) as ex: |
203 if '__linkto' in req.form and 'eid' in req.form: |
203 if '__linkto' in req.form and 'eid' in req.form: |
204 self.execute_linkto() |
204 self.execute_linkto() |
205 elif not ('__delete' in req.form or '__insert' in req.form): |
205 elif '__delete' not in req.form: |
206 raise ValidationError(None, {None: text_type(ex)}) |
206 raise ValidationError(None, {None: text_type(ex)}) |
207 # all pending inlined relations to newly created entities have been |
207 # all pending inlined relations to newly created entities have been |
208 # treated now (pop to ensure there are no attempt to add new ones) |
208 # treated now (pop to ensure there are no attempt to add new ones) |
209 pending_inlined = req.data.pop('pending_inlined') |
209 pending_inlined = req.data.pop('pending_inlined') |
210 assert not pending_inlined, pending_inlined |
210 assert not pending_inlined, pending_inlined |