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, ]