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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Milleville
SCODOC_R6A06
Commits
0402eac9
Commit
0402eac9
authored
2 years ago
by
Emmanuel Viennet
Committed by
iziram
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix #582: moy UE fiche etud si dispense.
parent
4dc2b414
Branches
master
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/scodoc/sco_formsemestre_validation.py
+25
-14
25 additions, 14 deletions
app/scodoc/sco_formsemestre_validation.py
with
25 additions
and
14 deletions
app/scodoc/sco_formsemestre_validation.py
+
25
−
14
View file @
0402eac9
...
@@ -512,7 +512,7 @@ def decisions_possible_rows(Se, assiduite, subtitle="", trclass=""):
...
@@ -512,7 +512,7 @@ def decisions_possible_rows(Se, assiduite, subtitle="", trclass=""):
def
formsemestre_recap_parcours_table
(
def
formsemestre_recap_parcours_table
(
Se
,
situation_etud_cursus
:
sco_cursus_dut
.
SituationEtudCursus
,
etudid
,
etudid
,
with_links
=
False
,
with_links
=
False
,
with_all_columns
=
True
,
with_all_columns
=
True
,
...
@@ -550,16 +550,18 @@ def formsemestre_recap_parcours_table(
...
@@ -550,16 +550,18 @@ def formsemestre_recap_parcours_table(
"""
"""
)
)
# titres des UE
# titres des UE
H
.
append
(
"
<th></th>
"
*
Se
.
nb_max_ue
)
H
.
append
(
"
<th></th>
"
*
situation_etud_cursus
.
nb_max_ue
)
#
#
if
with_links
:
if
with_links
:
H
.
append
(
"
<th></th>
"
)
H
.
append
(
"
<th></th>
"
)
H
.
append
(
"
<th></th></tr>
"
)
H
.
append
(
"
<th></th></tr>
"
)
num_sem
=
0
num_sem
=
0
for
sem
in
Se
.
get_semestres
():
for
sem
in
situation_etud_cursus
.
get_semestres
():
is_prev
=
Se
.
prev
and
(
Se
.
prev
[
"
formsemestre_id
"
]
==
sem
[
"
formsemestre_id
"
])
is_prev
=
situation_etud_cursus
.
prev
and
(
is_cur
=
Se
.
formsemestre_id
==
sem
[
"
formsemestre_id
"
]
situation_etud_cursus
.
prev
[
"
formsemestre_id
"
]
==
sem
[
"
formsemestre_id
"
]
)
is_cur
=
situation_etud_cursus
.
formsemestre_id
==
sem
[
"
formsemestre_id
"
]
num_sem
+=
1
num_sem
+=
1
dpv
=
sco_pv_dict
.
dict_pvjury
(
sem
[
"
formsemestre_id
"
],
etudids
=
[
etudid
])
dpv
=
sco_pv_dict
.
dict_pvjury
(
sem
[
"
formsemestre_id
"
],
etudids
=
[
etudid
])
...
@@ -582,7 +584,7 @@ def formsemestre_recap_parcours_table(
...
@@ -582,7 +584,7 @@ def formsemestre_recap_parcours_table(
else
:
else
:
type_sem
=
""
type_sem
=
""
class_sem
=
"
sem_autre
"
class_sem
=
"
sem_autre
"
if
sem
[
"
formation_code
"
]
!=
Se
.
formation
.
formation_code
:
if
sem
[
"
formation_code
"
]
!=
situation_etud_cursus
.
formation
.
formation_code
:
class_sem
+=
"
sem_autre_formation
"
class_sem
+=
"
sem_autre_formation
"
if
sem
[
"
bul_bgcolor
"
]:
if
sem
[
"
bul_bgcolor
"
]:
bgcolor
=
sem
[
"
bul_bgcolor
"
]
bgcolor
=
sem
[
"
bul_bgcolor
"
]
...
@@ -646,7 +648,7 @@ def formsemestre_recap_parcours_table(
...
@@ -646,7 +648,7 @@ def formsemestre_recap_parcours_table(
H
.
append
(
"
<td><em>en cours</em></td>
"
)
H
.
append
(
"
<td><em>en cours</em></td>
"
)
H
.
append
(
f
"""
<td class=
"
rcp_nonass
"
>
{
ass
}
</td>
"""
)
# abs
H
.
append
(
f
"""
<td class=
"
rcp_nonass
"
>
{
ass
}
</td>
"""
)
# abs
# acronymes UEs auxquelles l'étudiant est inscrit (ou capitalisé)
# acronymes UEs auxquelles l'étudiant est inscrit (ou capitalisé)
ues
=
list
(
nt
.
etud_ues
(
etudid
))
ues
=
list
(
nt
.
etud_ues
(
etudid
))
# nb: en BUT, les UE "dispensées" sont incluses
cnx
=
ndb
.
GetDBConnexion
()
cnx
=
ndb
.
GetDBConnexion
()
etud_ue_status
=
{
ue
.
id
:
nt
.
get_etud_ue_status
(
etudid
,
ue
.
id
)
for
ue
in
ues
}
etud_ue_status
=
{
ue
.
id
:
nt
.
get_etud_ue_status
(
etudid
,
ue
.
id
)
for
ue
in
ues
}
if
not
nt
.
is_apc
:
if
not
nt
.
is_apc
:
...
@@ -660,8 +662,10 @@ def formsemestre_recap_parcours_table(
...
@@ -660,8 +662,10 @@ def formsemestre_recap_parcours_table(
for
ue
in
ues
:
for
ue
in
ues
:
H
.
append
(
f
"""
<td class=
"
ue_acro
"
><span>
{
ue
.
acronyme
}
</span></td>
"""
)
H
.
append
(
f
"""
<td class=
"
ue_acro
"
><span>
{
ue
.
acronyme
}
</span></td>
"""
)
if
len
(
ues
)
<
Se
.
nb_max_ue
:
if
len
(
ues
)
<
situation_etud_cursus
.
nb_max_ue
:
H
.
append
(
f
"""
<td colspan=
"
{
Se
.
nb_max_ue
-
len
(
ues
)
}
"
></td>
"""
)
H
.
append
(
f
"""
<td colspan=
"
{
situation_etud_cursus
.
nb_max_ue
-
len
(
ues
)
}
"
></td>
"""
)
# indique le semestre compensé par celui ci:
# indique le semestre compensé par celui ci:
if
decision_sem
and
decision_sem
[
"
compense_formsemestre_id
"
]:
if
decision_sem
and
decision_sem
[
"
compense_formsemestre_id
"
]:
csem
=
sco_formsemestre
.
get_formsemestre
(
csem
=
sco_formsemestre
.
get_formsemestre
(
...
@@ -686,7 +690,7 @@ def formsemestre_recap_parcours_table(
...
@@ -686,7 +690,7 @@ def formsemestre_recap_parcours_table(
if
not
sem
[
"
etat
"
]:
# locked
if
not
sem
[
"
etat
"
]:
# locked
lockicon
=
scu
.
icontag
(
"
lock32_img
"
,
title
=
"
verrouillé
"
,
border
=
"
0
"
)
lockicon
=
scu
.
icontag
(
"
lock32_img
"
,
title
=
"
verrouillé
"
,
border
=
"
0
"
)
default_sem_info
+=
lockicon
default_sem_info
+=
lockicon
if
sem
[
"
formation_code
"
]
!=
Se
.
formation
.
formation_code
:
if
sem
[
"
formation_code
"
]
!=
situation_etud_cursus
.
formation
.
formation_code
:
default_sem_info
+=
f
"""
Autre formation:
{
sem
[
"
formation_code
"
]
}
"""
default_sem_info
+=
f
"""
Autre formation:
{
sem
[
"
formation_code
"
]
}
"""
H
.
append
(
H
.
append
(
'
<td class=
"
datefin
"
>%s</td><td class=
"
sem_info
"
>%s</td>
'
'
<td class=
"
datefin
"
>%s</td><td class=
"
sem_info
"
>%s</td>
'
...
@@ -723,14 +727,21 @@ def formsemestre_recap_parcours_table(
...
@@ -723,14 +727,21 @@ def formsemestre_recap_parcours_table(
explanation_ue
.
append
(
explanation_ue
.
append
(
f
"""
Capitalisée le
{
ue_status
[
"
event_date
"
]
or
"
?
"
}
.
"""
f
"""
Capitalisée le
{
ue_status
[
"
event_date
"
]
or
"
?
"
}
.
"""
)
)
# Dispense BUT ?
if
(
etudid
,
ue
.
id
)
in
nt
.
dispense_ues
:
moy_ue_txt
=
"
❎
"
if
(
ue_status
and
ue_status
[
"
is_capitalized
"
])
else
"
⭕
"
explanation_ue
.
append
(
"
non inscrit (dispense)
"
)
else
:
moy_ue_txt
=
scu
.
fmt_note
(
moy_ue
)
H
.
append
(
H
.
append
(
f
"""
<td class=
"
{
class_ue
}
"
title=
"
{
f
"""
<td class=
"
{
class_ue
}
"
title=
"
{
"
"
.
join
(
explanation_ue
)
"
"
.
join
(
explanation_ue
)
}
"
>
{
scu
.
fmt_note
(
moy_ue
)
}
</td>
"""
}
"
>
{
moy_ue_txt
}
</td>
"""
)
if
len
(
ues
)
<
situation_etud_cursus
.
nb_max_ue
:
H
.
append
(
f
"""
<td colspan=
"
{
situation_etud_cursus
.
nb_max_ue
-
len
(
ues
)
}
"
></td>
"""
)
)
if
len
(
ues
)
<
Se
.
nb_max_ue
:
H
.
append
(
f
"""
<td colspan=
"
{
Se
.
nb_max_ue
-
len
(
ues
)
}
"
></td>
"""
)
H
.
append
(
"
<td></td>
"
)
H
.
append
(
"
<td></td>
"
)
if
with_links
:
if
with_links
:
...
...
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