web/views/editcontroller.py
changeset 6015 ee76e8e72776
parent 5877 0c7b7b76a84f
child 6033 09db6f4619c9
equal deleted inserted replaced
6013:8ca424bc393b 6015:ee76e8e72776
   113         self.errors = []
   113         self.errors = []
   114         self.relations_rql = []
   114         self.relations_rql = []
   115         form = req.form
   115         form = req.form
   116         # so we're able to know the main entity from the repository side
   116         # so we're able to know the main entity from the repository side
   117         if '__maineid' in form:
   117         if '__maineid' in form:
   118             req.set_shared_data('__maineid', form['__maineid'], querydata=True)
   118             req.set_shared_data('__maineid', form['__maineid'], txdata=True)
   119         # no specific action, generic edition
   119         # no specific action, generic edition
   120         self._to_create = req.data['eidmap'] = {}
   120         self._to_create = req.data['eidmap'] = {}
   121         self._pending_fields = req.data['pendingfields'] = set()
   121         self._pending_fields = req.data['pendingfields'] = set()
   122         try:
   122         try:
   123             methodname = req.form.pop('__method', None)
   123             methodname = req.form.pop('__method', None)