forked from ScoDoc/ScoDoc
Erreur si la reponse portail n'a pas le mail
This commit is contained in:
parent
e9ad417f1f
commit
2cac0031f6
@ -854,23 +854,27 @@ def formsemestre_import_etud_admission(
|
|||||||
apo_emailperso = etud.get("mailperso", "")
|
apo_emailperso = etud.get("mailperso", "")
|
||||||
if info["emailperso"] and not apo_emailperso:
|
if info["emailperso"] and not apo_emailperso:
|
||||||
apo_emailperso = info["emailperso"]
|
apo_emailperso = info["emailperso"]
|
||||||
if (
|
if import_email:
|
||||||
import_email
|
if not "mail" in etud:
|
||||||
and info["email"] != etud["mail"]
|
raise ScoValueError(
|
||||||
or info["emailperso"] != apo_emailperso
|
"la réponse portail n'a pas le champs requis 'mail'"
|
||||||
):
|
)
|
||||||
sco_etud.adresse_edit(
|
if (
|
||||||
cnx,
|
info["email"] != etud["mail"]
|
||||||
args={
|
or info["emailperso"] != apo_emailperso
|
||||||
"etudid": etudid,
|
):
|
||||||
"adresse_id": info["adresse_id"],
|
sco_etud.adresse_edit(
|
||||||
"email": etud["mail"],
|
cnx,
|
||||||
"emailperso": apo_emailperso,
|
args={
|
||||||
},
|
"etudid": etudid,
|
||||||
)
|
"adresse_id": info["adresse_id"],
|
||||||
# notifie seulement les changements d'adresse mail institutionnelle
|
"email": etud["mail"],
|
||||||
if info["email"] != etud["mail"]:
|
"emailperso": apo_emailperso,
|
||||||
changed_mails.append((info, etud["mail"]))
|
},
|
||||||
|
)
|
||||||
|
# notifie seulement les changements d'adresse mail institutionnelle
|
||||||
|
if info["email"] != etud["mail"]:
|
||||||
|
changed_mails.append((info, etud["mail"]))
|
||||||
else:
|
else:
|
||||||
unknowns.append(code_nip)
|
unknowns.append(code_nip)
|
||||||
sco_cache.invalidate_formsemestre(formsemestre_id=sem["formsemestre_id"])
|
sco_cache.invalidate_formsemestre(formsemestre_id=sem["formsemestre_id"])
|
||||||
|
Loading…
Reference in New Issue
Block a user