def mailagain(request): """ Send an email again based on its history entry """ history_entry = MailHistory.get(request.matchdict['id']) send_salary_sheet( request, history_entry.company, history_entry.filename, history_entry.filepath, True, ) request.session.flash(u"Le mail a bien été envoyé") url = request.route_path('mailhistory') return HTTPFound(url)
def query(self): return MailHistory.query()