Example #1
0
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)
Example #2
0
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)
Example #3
0
 def query(self):
     return MailHistory.query()
Example #4
0
 def query(self):
     return MailHistory.query()