web/views/editcontroller.py
changeset 4940 3143a1258d62
parent 4934 0dfd86d2cd98
child 5038 90493551b1eb
equal deleted inserted replaced
4938:b1a4fe480de5 4940:3143a1258d62
   277 
   277 
   278     def _action_cancel(self):
   278     def _action_cancel(self):
   279         errorurl = self._cw.form.get('__errorurl')
   279         errorurl = self._cw.form.get('__errorurl')
   280         if errorurl:
   280         if errorurl:
   281             self._cw.cancel_edition(errorurl)
   281             self._cw.cancel_edition(errorurl)
   282         self._cw.message = self._cw._('edit canceled')
   282         self._cw.set_message(self._cw._('edit canceled'))
   283         return self.reset()
   283         return self.reset()
   284 
   284 
   285     def _action_delete(self):
   285     def _action_delete(self):
   286         self.delete_entities(self._cw.edited_eids(withtype=True))
   286         self.delete_entities(self._cw.edited_eids(withtype=True))
   287         return self.reset()
   287         return self.reset()