mail.check_uniqueness: Test initial inutile et initialisation de res
This commit is contained in:
parent
00f67697ee
commit
443876863f
1 changed files with 29 additions and 24 deletions
|
@ -754,9 +754,14 @@ class mail(rightProtectedAttr):
|
|||
|
||||
def check_uniqueness(self, liste_exclue):
|
||||
attr = self.__class__.__name__
|
||||
|
||||
if str(self) in liste_exclue:
|
||||
return
|
||||
if attr in ["mailAlias", "canonicalAlias", 'mail', 'mailExt']:
|
||||
|
||||
# On initialise le résultat, s'il vaut true en fin de course, le mail
|
||||
# est déjà pris.
|
||||
res = False
|
||||
|
||||
mail = str(self)
|
||||
|
||||
_, domain = mail.split('@')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue