equal
deleted
inserted
replaced
16 from mx.DateTime.Parser import DateFromString |
16 from mx.DateTime.Parser import DateFromString |
17 |
17 |
18 from logilab.common.decorators import cached |
18 from logilab.common.decorators import cached |
19 |
19 |
20 from cubicweb import NoSelectableObject, ValidationError, typed_eid |
20 from cubicweb import NoSelectableObject, ValidationError, typed_eid |
21 from cubicweb.common.selectors import yes_selector |
21 from cubicweb.common.selectors import yes |
22 from cubicweb.common.mail import format_mail |
22 from cubicweb.common.mail import format_mail |
23 from cubicweb.common.view import STRICT_DOCTYPE, CW_XHTML_EXTENSIONS |
23 from cubicweb.common.view import STRICT_DOCTYPE, CW_XHTML_EXTENSIONS |
24 |
24 |
25 from cubicweb.web import ExplicitLogin, Redirect, RemoteCallFailed |
25 from cubicweb.web import ExplicitLogin, Redirect, RemoteCallFailed |
26 from cubicweb.web.controller import Controller |
26 from cubicweb.web.controller import Controller |
503 raise Redirect(url) |
503 raise Redirect(url) |
504 |
504 |
505 |
505 |
506 class MailBugReportController(SendMailController): |
506 class MailBugReportController(SendMailController): |
507 id = 'reportbug' |
507 id = 'reportbug' |
508 __selectors__ = (yes_selector,) |
508 __selectors__ = (yes,) |
509 |
509 |
510 def publish(self, rset=None): |
510 def publish(self, rset=None): |
511 body = self.req.form['description'] |
511 body = self.req.form['description'] |
512 self.sendmail(self.config['submit-mail'], _('%s error report') % self.config.appid, body) |
512 self.sendmail(self.config['submit-mail'], _('%s error report') % self.config.appid, body) |
513 url = self.build_url(__message=self.req._('bug report sent')) |
513 url = self.build_url(__message=self.req._('bug report sent')) |