diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index 6f11ca45..ad5adc52 100644 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -1630,6 +1630,11 @@ def modif_adher(adher): arg = u'--title "Modification de %s" ' % adher.Nom() arg += u'--msgbox "ERREUR : la chambre de cet adhérent est inconnue !\n\n\n" 0 0' dialog(arg) + elif adher.mail() == '': + res= ['Mail'] + arg = u'--title "Modification de %s" ' % adher.Nom() + arg += u'--msgbox "ERREUR : l\'adresse mail de cet adhérent est inconnue !\n\n\n" 0 0' + dialog(arg) else: payant = not isinstance(adher, Club) and adher.adherentPayant() diff --git a/gestion/whos.py b/gestion/whos.py index fe530684..afa5e507 100644 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -400,9 +400,11 @@ def adher_details(adher) : # Mail GL = RMH = u'' - if adher.mail().find(u'@')!=-1 : + if adher.mail().find(u'@')!=-1 or adher.mail() == '': f += coul(u'Adresse mail : ','gras') - if adher.mail_invalide(): + if adher.mail() == '': + f += coul('INCONNUE','rouge') + elif adher.mail_invalide(): f += coul(adher.mail(),'rouge') else: f += adher.mail()