WIP: validation don
This commit is contained in:
parent
1bca0ed3b2
commit
42412c4b3c
|
@ -160,10 +160,13 @@ def validate(record):
|
||||||
os.system("cd {} && pdflatex {}".format(WORKDIR+"/validé/", filename+".tex"))
|
os.system("cd {} && pdflatex {}".format(WORKDIR+"/validé/", filename+".tex"))
|
||||||
|
|
||||||
# Preparing mail
|
# Preparing mail
|
||||||
mailheaders = get_file_content_all(RECEPT_MAIL_HEADERS).replace("COURRIEL-DON",
|
mailheaders = get_file_content_all(RECEPT_MAIL_HEADERS).replace(
|
||||||
email) + "\n"
|
"COURRIEL-DON",
|
||||||
mailtext = get_file_content_all(RECEPT_MAIL) + "\n"
|
email) + "\n"
|
||||||
mailtattach = get_file_content_all(RECEPT_MAIL_ATTACHMENT) + "\n"
|
mailtext = get_file_content_all(RECEPT_MAIL).replace("DATE-DON", date) + "\n"
|
||||||
|
mailtattach = get_file_content_all(RECEPT_MAIL_ATTACHMENT).replace(
|
||||||
|
"DATE-DON",
|
||||||
|
date.replace("/", ".")) + "\n"
|
||||||
|
|
||||||
# Opening PDF file as binary
|
# Opening PDF file as binary
|
||||||
attachment = open(WORKDIR+"/validé/"+filename+".pdf", "rb")
|
attachment = open(WORKDIR+"/validé/"+filename+".pdf", "rb")
|
||||||
|
|
Loading…
Reference in New Issue