From fe37e87532642d1f3487272504f6cbe1cf45b6cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Mon, 7 Sep 2015 22:12:28 +0200 Subject: [PATCH] =?UTF-8?q?Quand=20on=20cr=C3=A9e=20le=20compte=20Crans=20?= =?UTF-8?q?on=20appelle=20set=5Fmail=5Fext?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gestion/gest_crans.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index 47c19761..42d90236 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -424,9 +424,12 @@ def set_contact(adher): if result[0].split()[0] == 'Laisser': break elif result[0].split()[1] == u'un': - if not set_compte(adher): break + if not set_compte(adher): + set_mail_ext(adher) + break else: - if not set_mail(adher): break + if not set_mail(adher): + break def set_mail(adher): """Demande l'adresse mail extérieure d'un adhérent @@ -1273,7 +1276,7 @@ def confirm(clas): if no: pass else: - subprocess.call(['/usr/scripts/cransticket/dump_creds.py','mid=%s' % clas.id()]) + subprocess.call(['/usr/scripts/cransticket/dump_creds.py', 'mid=%s' % clas.id()]) if in_facture is not None: in_facture.recuPaiement(strftime("%Y-%m-%d %H:%M:%S")) in_facture.save() @@ -2147,7 +2150,7 @@ def new_adher(adher): * set_adhesion * set_connexion * set_contact - * set_mail_ext + (qui appelle set_mail_ext si on met un compte crans) * set_rque Retourne 1 si annulation. """ @@ -2160,7 +2163,6 @@ def new_adher(adher): set_adhesion, set_connexion, set_contact, - set_mail_ext, set_rque, ]