[gest_crans,whos] Correction comptes supprimes
On evite de chier quand on a supprime le compte crans de quelqu'un et qu'on a '' comme adresse mail ... darcs-hash:20110118185649-ddb99-0f5297337aa6ba04615e7077ab19d695340458c2.gz
This commit is contained in:
parent
5bd8225cbe
commit
5083ca16ad
2 changed files with 9 additions and 2 deletions
|
@ -1630,6 +1630,11 @@ def modif_adher(adher):
|
||||||
arg = u'--title "Modification de %s" ' % adher.Nom()
|
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'
|
arg += u'--msgbox "ERREUR : la chambre de cet adhérent est inconnue !\n\n\n" 0 0'
|
||||||
dialog(arg)
|
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:
|
else:
|
||||||
payant = not isinstance(adher, Club) and adher.adherentPayant()
|
payant = not isinstance(adher, Club) and adher.adherentPayant()
|
||||||
|
|
||||||
|
|
|
@ -400,9 +400,11 @@ def adher_details(adher) :
|
||||||
|
|
||||||
# Mail
|
# Mail
|
||||||
GL = RMH = u''
|
GL = RMH = u''
|
||||||
if adher.mail().find(u'@')!=-1 :
|
if adher.mail().find(u'@')!=-1 or adher.mail() == '':
|
||||||
f += coul(u'Adresse mail : ','gras')
|
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')
|
f += coul(adher.mail(),'rouge')
|
||||||
else:
|
else:
|
||||||
f += adher.mail()
|
f += adher.mail()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue