web/views/basecontrollers.py
changeset 3460 e4843535db25
parent 3451 6b46d73823f5
child 3524 a3431f4e2f40
--- a/web/views/basecontrollers.py	Thu Sep 24 00:23:32 2009 +0200
+++ b/web/views/basecontrollers.py	Thu Sep 24 00:24:21 2009 +0200
@@ -422,7 +422,7 @@
     def js_format_date(self, strdate):
         """returns the formatted date for `msgid`"""
         date = strptime(strdate, '%Y-%m-%d %H:%M:%S')
-        return self.format_date(date)
+        return self._cw.format_date(date)
 
     @jsonize
     def js_external_resource(self, resource):
@@ -563,7 +563,7 @@
         except Exception, ex:
             self.exception("can't connect to smtp server %s:%s (%s)",
                              mailhost, port, ex)
-            url = self.build_url(__message=self._cw._('could not connect to the SMTP server'))
+            url = self._cw.build_url(__message=self._cw._('could not connect to the SMTP server'))
             raise Redirect(url)
 
     def sendmail(self, recipient, subject, body):
@@ -583,7 +583,7 @@
             text = body % recipient.as_email_context()
             self.sendmail(recipient.get_email(), subject, text)
         # breadcrumbs = self._cw.get_session_data('breadcrumbs', None)
-        url = self.build_url(__message=self._cw._('emails successfully sent'))
+        url = self._cw.build_url(__message=self._cw._('emails successfully sent'))
         raise Redirect(url)
 
 
@@ -594,6 +594,6 @@
     def publish(self, rset=None):
         body = self._cw.form['description']
         self.sendmail(self._cw.config['submit-mail'], _('%s error report') % self._cw.config.appid, body)
-        url = self.build_url(__message=self._cw._('bug report sent'))
+        url = self._cw.build_url(__message=self._cw._('bug report sent'))
         raise Redirect(url)