From f16e44b07467b0a46990d62bdb4c7a01b9858bb7 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Thu, 11 Sep 2014 03:56:07 +0200 Subject: [PATCH] =?UTF-8?q?[chambre=5Fvides+templates=20mails]=20On=20met?= =?UTF-8?q?=20le=20nom=20de=20l'adh=C3=A9rent=20dans=20le=20mail=20de=20d?= =?UTF-8?q?=C3=A9m=C3=A9nagement=20non=20d=C3=A9clar=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Parce que c'est relou d'avoir comme seule information fiable la chambre alors que c'est justement le truc qui a changé. Et parce que c'est utopique de croire que les adhérents savent signer ou utiliser l'adresse qu'ils nous ont donnée. --- gestion/chambres_vides.py | 2 ++ gestion/mail/template/demenagement/body/en | 2 +- gestion/mail/template/demenagement/body/fr | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gestion/chambres_vides.py b/gestion/chambres_vides.py index e4978e87..cf7b5325 100755 --- a/gestion/chambres_vides.py +++ b/gestion/chambres_vides.py @@ -70,6 +70,8 @@ for clandestin in bad_boys_e_s: "chambre" : exchambre, "jours" : int(ttl/86400) + 1, "to" : to, + "prenom" : clandestin["prenom"][0], + "nom" : clandestin["nom"][0], "lang_info":"English version below"} ).as_string() if DEBUG: diff --git a/gestion/mail/template/demenagement/body/en b/gestion/mail/template/demenagement/body/en index 9784d459..0a3256a6 100644 --- a/gestion/mail/template/demenagement/body/en +++ b/gestion/mail/template/demenagement/body/en @@ -1,4 +1,4 @@ -Hi ! +Hi {{prenom}} {{nom}}! A new member of Crans has declared to live in room {{chambre}}, which is the one you were registered in. It means we do not have a valid address of yours diff --git a/gestion/mail/template/demenagement/body/fr b/gestion/mail/template/demenagement/body/fr index 50eb8bcd..9ff3d931 100644 --- a/gestion/mail/template/demenagement/body/fr +++ b/gestion/mail/template/demenagement/body/fr @@ -1,4 +1,4 @@ -Bonjour, +Bonjour {{prenom}} {{nom}}, Un adhérent du Crans a déclaré résider dans la chambre {{chambre}}, que tu occupais précédemment. Cela signifie que nous ne disposons