web/controller.py
branchstable
changeset 7879 9aae456abab5
parent 7432 cab99ccdb774
child 8190 2a3c1b787688
child 8254 eff5b930998d
equal deleted inserted replaced
7874:be04706eacc9 7879:9aae456abab5
   112         msg = format_mail({'email' : senderemail,
   112         msg = format_mail({'email' : senderemail,
   113                            'name' : self._cw.user.dc_title(),},
   113                            'name' : self._cw.user.dc_title(),},
   114                           [recipient], body, subject)
   114                           [recipient], body, subject)
   115         if not self._cw.vreg.config.sendmails([(msg, [recipient])]):
   115         if not self._cw.vreg.config.sendmails([(msg, [recipient])]):
   116             msg = self._cw._('could not connect to the SMTP server')
   116             msg = self._cw._('could not connect to the SMTP server')
   117             url = self._cw.build_url(__message=msgid)
   117             url = self._cw.build_url(__message=msg)
   118             raise Redirect(url)
   118             raise Redirect(url)
   119 
   119 
   120     def reset(self):
   120     def reset(self):
   121         """reset form parameters and redirect to a view determinated by given
   121         """reset form parameters and redirect to a view determinated by given
   122         parameters
   122         parameters