Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCODOC_R6A06
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Milleville
SCODOC_R6A06
Commits
2cac0031
Commit
2cac0031
authored
3 years ago
by
Emmanuel Viennet
Browse files
Options
Downloads
Patches
Plain Diff
Erreur si la reponse portail n'a pas le mail
parent
e9ad417f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/scodoc/sco_synchro_etuds.py
+21
-17
21 additions, 17 deletions
app/scodoc/sco_synchro_etuds.py
with
21 additions
and
17 deletions
app/scodoc/sco_synchro_etuds.py
+
21
−
17
View file @
2cac0031
...
...
@@ -854,23 +854,27 @@ def formsemestre_import_etud_admission(
apo_emailperso
=
etud
.
get
(
"
mailperso
"
,
""
)
if
info
[
"
emailperso
"
]
and
not
apo_emailperso
:
apo_emailperso
=
info
[
"
emailperso
"
]
if
(
import_email
and
info
[
"
email
"
]
!=
etud
[
"
mail
"
]
or
info
[
"
emailperso
"
]
!=
apo_emailperso
):
sco_etud
.
adresse_edit
(
cnx
,
args
=
{
"
etudid
"
:
etudid
,
"
adresse_id
"
:
info
[
"
adresse_id
"
],
"
email
"
:
etud
[
"
mail
"
],
"
emailperso
"
:
apo_emailperso
,
},
)
# notifie seulement les changements d'adresse mail institutionnelle
if
info
[
"
email
"
]
!=
etud
[
"
mail
"
]:
changed_mails
.
append
((
info
,
etud
[
"
mail
"
]))
if
import_email
:
if
not
"
mail
"
in
etud
:
raise
ScoValueError
(
"
la réponse portail n
'
a pas le champs requis
'
mail
'"
)
if
(
info
[
"
email
"
]
!=
etud
[
"
mail
"
]
or
info
[
"
emailperso
"
]
!=
apo_emailperso
):
sco_etud
.
adresse_edit
(
cnx
,
args
=
{
"
etudid
"
:
etudid
,
"
adresse_id
"
:
info
[
"
adresse_id
"
],
"
email
"
:
etud
[
"
mail
"
],
"
emailperso
"
:
apo_emailperso
,
},
)
# notifie seulement les changements d'adresse mail institutionnelle
if
info
[
"
email
"
]
!=
etud
[
"
mail
"
]:
changed_mails
.
append
((
info
,
etud
[
"
mail
"
]))
else
:
unknowns
.
append
(
code_nip
)
sco_cache
.
invalidate_formsemestre
(
formsemestre_id
=
sem
[
"
formsemestre_id
"
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment