[SOGo] On patche un peu partout pour pouvoir rendre le champ mail de ldap plus propre.

Ignore-this: aed0fb0c7f88d3feb1f0be35b11780bf

darcs-hash:20121201132852-b6762-f77d73b568bc1ad0fef3c9341cb2a00a34a09a0c.gz
This commit is contained in:
Pierre-Elliott Bécue 2012-12-01 14:28:52 +01:00
parent e6777ccb12
commit ab6202f37c
5 changed files with 21 additions and 14 deletions

View file

@ -403,7 +403,7 @@ def adher_details(adher) :
# Mail
GL = RMH = u''
if adher.mail().find(u'@')!=-1 or adher.mail() == '':
if adher.mail() == '' or adher.compte() == '':
f += coul(u'Adresse mail : ','gras')
if adher.mail() == '':
f += coul('INCONNUE','rouge')
@ -415,9 +415,9 @@ def adher_details(adher) :
else :
f += coul(u'Login : ','gras')
if adher.mail_invalide():
f += coul(adher.mail(),'rouge')
f += coul(adher.compte(),'rouge')
else:
f += adher.mail()
f += adher.compte()
f += "\t"
# controurneGreylisting
if not adher.contourneGreylist():