web/views/editcontroller.py
changeset 3998 94cc7cad3d2d
parent 3720 5376aaadd16b
parent 3924 4347654979e8
child 4007 91d11fda4aa0
equal deleted inserted replaced
3895:92ead039d3d0 3998:94cc7cad3d2d
    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         # so we're able to know the main entity from the repository side
       
    74         if '__maineid' in form:
       
    75             req.set_shared_data('__maineid', form['__maineid'], querydata=True)
    73         # no specific action, generic edition
    76         # no specific action, generic edition
    74         self._to_create = req.data['eidmap'] = {}
    77         self._to_create = req.data['eidmap'] = {}
    75         self._pending_relations = []
    78         self._pending_relations = []
    76         todelete = self._cw.get_pending_deletes()
    79         todelete = self._cw.get_pending_deletes()
    77         toinsert = self._cw.get_pending_inserts()
    80         toinsert = self._cw.get_pending_inserts()