Quand on crée le compte Crans on appelle set_mail_ext

This commit is contained in:
Pierre-Elliott Bécue 2015-09-07 22:12:28 +02:00
parent f1bcfde617
commit fe37e87532

View file

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