def getDownloadMessage(self, title, type):
     """'download' or 'goto'"""
     if type=='download':
         return _('download_message',
                  default=u'Download the file ${title}',
                  mapping={'title': self.safe_unicode(title)})
     elif type=='goto':
         return _('goto_message',
                  default=u'Go to link ${title}',
                  mapping={'title': self.safe_unicode(title)})            
     return None
 def getExternalLinkMessage(self):
     return _(u'External link')