web/views/editcontroller.py
changeset 4007 91d11fda4aa0
parent 3998 94cc7cad3d2d
child 4045 f4a52abb6f4f
equal deleted inserted replaced
4006:c89be0bdf943 4007:91d11fda4aa0
    68 
    68 
    69     def _default_publish(self):
    69     def _default_publish(self):
    70         req = self._cw
    70         req = self._cw
    71         self.errors = []
    71         self.errors = []
    72         self.relations_rql = []
    72         self.relations_rql = []
       
    73         form = req.form
    73         # so we're able to know the main entity from the repository side
    74         # so we're able to know the main entity from the repository side
    74         if '__maineid' in form:
    75         if '__maineid' in form:
    75             req.set_shared_data('__maineid', form['__maineid'], querydata=True)
    76             req.set_shared_data('__maineid', form['__maineid'], querydata=True)
    76         # no specific action, generic edition
    77         # no specific action, generic edition
    77         self._to_create = req.data['eidmap'] = {}
    78         self._to_create = req.data['eidmap'] = {}