"""
-
-
-def formsemestre_bulletins_pdf_choice(context, REQUEST, formsemestre_id, version=None):
- """Choix version puis envois classeur bulletins pdf"""
- if version:
- return context.formsemestre_bulletins_pdf(
- formsemestre_id, REQUEST, version=version
- )
- return formsemestre_bulletins_choice(
- context,
- REQUEST,
- formsemestre_id,
- title="Choisir la version des bulletins à générer",
- explanation=expl_bull,
- )
-
-
-def formsemestre_bulletins_mailetuds_choice(
- context,
- REQUEST,
- formsemestre_id,
- version=None,
- dialog_confirmed=False,
- prefer_mail_perso=0,
-):
- """Choix version puis envois classeur bulletins pdf"""
- if version:
- return context.formsemestre_bulletins_mailetuds(
- formsemestre_id,
- REQUEST,
- version=version,
- dialog_confirmed=dialog_confirmed,
- prefer_mail_perso=prefer_mail_perso,
- )
- return formsemestre_bulletins_choice(
- context,
- REQUEST,
- formsemestre_id,
- title="Choisir la version des bulletins à envoyer par mail",
- explanation="Chaque étudiant ayant une adresse mail connue de ScoDoc recevra une copie PDF de son bulletin de notes, dans la version choisie."
- + expl_bull,
- choose_mail=True,
- )
-
-
-"""
-from debug import *
-from sco_bulletins import *
-context = go_dept(app, 'RT')
-etudid='EID25013'
-etudid='EID27760' # bonh
-formsemestre_id = 'SEM27425'
-I = formsemestre_bulletinetud_dict(context.Notes, formsemestre_id, etudid, REQUEST=REQUEST)
-"""
diff --git a/app/scodoc/sco_bulletins_json.py b/app/scodoc/sco_bulletins_json.py
index 157367eb2..3137cc2fe 100644
--- a/app/scodoc/sco_bulletins_json.py
+++ b/app/scodoc/sco_bulletins_json.py
@@ -116,7 +116,7 @@ def formsemestre_bulletinetud_published_dict(
d.update(**el)
# Infos sur l'etudiant
- etudinfo = context.getEtudInfo(etudid=etudid, filled=1)[0]
+ etudinfo = scolars.get_etud_info(etudid=etudid, filled=1)[0]
d["etudiant"] = dict(
etudid=etudid,
diff --git a/app/scodoc/sco_bulletins_pdf.py b/app/scodoc/sco_bulletins_pdf.py
index a3e05029f..41a802a64 100644
--- a/app/scodoc/sco_bulletins_pdf.py
+++ b/app/scodoc/sco_bulletins_pdf.py
@@ -227,7 +227,7 @@ def get_formsemestre_bulletins_pdf(
def get_etud_bulletins_pdf(context, etudid, REQUEST, version="selectedevals"):
"Bulletins pdf de tous les semestres de l'étudiant, et filename"
- etud = context.getEtudInfo(etudid=etudid, filled=1)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=1)[0]
fragments = []
bookmarks = {}
filigrannes = {}
diff --git a/app/scodoc/sco_bulletins_xml.py b/app/scodoc/sco_bulletins_xml.py
index 782ca98c8..95616c3a4 100644
--- a/app/scodoc/sco_bulletins_xml.py
+++ b/app/scodoc/sco_bulletins_xml.py
@@ -99,7 +99,7 @@ def make_xml_formsemestre_bulletinetud(
doc.bulletinetud(**el)
# Infos sur l'etudiant
- etudinfo = context.getEtudInfo(etudid=etudid, filled=1)[0]
+ etudinfo = scolars.get_etud_info(etudid=etudid, filled=1)[0]
doc._push()
doc.etudiant(
etudid=etudid,
diff --git a/app/scodoc/sco_compute_moy.py b/app/scodoc/sco_compute_moy.py
index 7dba22a57..89c9a9710 100644
--- a/app/scodoc/sco_compute_moy.py
+++ b/app/scodoc/sco_compute_moy.py
@@ -166,7 +166,7 @@ def compute_user_formula(
if user_moy != "NA0" and user_moy != "NA":
user_moy = float(user_moy)
if (user_moy > 20) or (user_moy < 0):
- etud = context.getEtudInfo(etudid=etudid, filled=1)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=1)[0]
raise ScoException(
"""valeur moyenne %s hors limite pour %s"""
diff --git a/app/scodoc/sco_debouche.py b/app/scodoc/sco_debouche.py
index 9262af3db..515397a36 100644
--- a/app/scodoc/sco_debouche.py
+++ b/app/scodoc/sco_debouche.py
@@ -104,7 +104,7 @@ def table_debouche_etudids(context, etudids, keep_numeric=True):
"""Rapport pour ces etudiants"""
L = []
for etudid in etudids:
- etud = context.getEtudInfo(filled=1, etudid=etudid)[0]
+ etud = scolars.get_etud_info(filled=1, etudid=etudid)[0]
# retrouve le "dernier" semestre (au sens de la date de fin)
sems = etud["sems"]
es = [(sems[i]["date_fin_iso"], i) for i in range(len(sems))]
diff --git a/app/scodoc/sco_etape_apogee_view.py b/app/scodoc/sco_etape_apogee_view.py
index d3d4aa1a8..128e1bcda 100644
--- a/app/scodoc/sco_etape_apogee_view.py
+++ b/app/scodoc/sco_etape_apogee_view.py
@@ -498,7 +498,7 @@ def view_apo_etuds(context, semset_id, title="", nips=[], format="html", REQUEST
etuds = sco_etape_apogee.apo_csv_retreive_etuds_by_nip(context, semset, nips)
# Ils sont parfois dans ScoDoc même si pas dans le semestre: essaie de les retrouver
for etud in etuds.values():
- etud_sco = context.getEtudInfo(code_nip=etud["nip"], filled=True)
+ etud_sco = scolars.get_etud_info(code_nip=etud["nip"], filled=True)
if etud_sco:
e = etud_sco[0]
etud["inscriptions_scodoc"] = ", ".join(
@@ -529,12 +529,12 @@ def view_scodoc_etuds(
if type(etudids) != type([]):
etudids = [etudids]
etuds = [
- context.getEtudInfo(etudid=etudid, filled=True)[0] for etudid in etudids
+ scolars.get_etud_info(etudid=etudid, filled=True)[0] for etudid in etudids
]
elif nips is not None:
if type(nips) != type([]):
nips = [nips]
- etuds = [context.getEtudInfo(code_nip=nip, filled=True)[0] for nip in nips]
+ etuds = [scolars.get_etud_info(code_nip=nip, filled=True)[0] for nip in nips]
else:
raise ValueError("etudid or NIP must be specified")
@@ -752,7 +752,7 @@ def view_apo_csv(context, etape_apo="", semset_id="", format="html", REQUEST=Non
e["in_scodoc_str"] = {True: "oui", False: "non"}[e["in_scodoc"]]
if e["in_scodoc"]:
e["_in_scodoc_str_target"] = "ficheEtud?code_nip=" + e["nip"]
- e.update(context.getEtudInfo(code_nip=e["nip"], filled=True)[0])
+ e.update(scolars.get_etud_info(code_nip=e["nip"], filled=True)[0])
e["_nom_td_attrs"] = 'id="%s" class="etudinfo"' % (e["etudid"],)
e["_prenom_td_attrs"] = 'id="pre-%s" class="etudinfo"' % (e["etudid"],)
else:
diff --git a/app/scodoc/sco_export_results.py b/app/scodoc/sco_export_results.py
index 0afe3f81a..be1bf6da7 100644
--- a/app/scodoc/sco_export_results.py
+++ b/app/scodoc/sco_export_results.py
@@ -83,7 +83,7 @@ def _build_results_table(context, start_date=None, end_date=None, types_parcours
etudids = nt.get_etudids()
for etudid in etudids:
if etudid not in etuds_infos: # pas encore traité ?
- etud = context.getEtudInfo(etudid=etudid, filled=True)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=True)[0]
for sem in etud["sems"]: # le plus récent d'abord
if sem["formsemestre_id"] in formsemestre_ids_parcours:
etuds_infos[etudid] = {
@@ -340,7 +340,7 @@ from debug import *
from sco_export_results import *
context = go_dept(app, 'RT').Notes
etudid = 'EID27764'
-etud = context.getEtudInfo(etudid=etudid, filled=True)[0]
+etud = scolars.get_etud_info( etudid=etudid, filled=True)[0]
start_date='2015-08-15'
end_date='2017-08-31'
diff --git a/app/scodoc/sco_find_etud.py b/app/scodoc/sco_find_etud.py
index 9e0e26cfb..d93be419c 100644
--- a/app/scodoc/sco_find_etud.py
+++ b/app/scodoc/sco_find_etud.py
@@ -110,7 +110,7 @@ def search_etud_in_dept(context, expnom="", REQUEST=None):
"""
dest_url = "ficheEtud"
if len(expnom) > 1:
- etuds = context.getEtudInfo(filled=1, etudid=expnom, REQUEST=REQUEST)
+ etuds = scolars.get_etud_info(filled=1, etudid=expnom, REQUEST=REQUEST)
if len(etuds) != 1:
if scu.is_valid_code_nip(expnom):
etuds = search_etuds_infos(context, code_nip=expnom, REQUEST=REQUEST)
diff --git a/app/scodoc/sco_formsemestre_exterieurs.py b/app/scodoc/sco_formsemestre_exterieurs.py
index 42d68e04f..ab35431b3 100644
--- a/app/scodoc/sco_formsemestre_exterieurs.py
+++ b/app/scodoc/sco_formsemestre_exterieurs.py
@@ -53,7 +53,7 @@ def formsemestre_ext_create(context, etudid, sem_params, REQUEST=None):
args={"formation_id": sem_params["formation_id"]}
)[0]
if etudid:
- _etud = context.getEtudInfo(etudid=etudid, filled=1)[0]
+ _etud = scolars.get_etud_info(etudid=etudid, filled=1)[0]
# Create formsemestre
sem_params["modalite"] = "EXT"
@@ -75,7 +75,7 @@ def formsemestre_ext_create(context, etudid, sem_params, REQUEST=None):
def formsemestre_ext_create_form(context, etudid, formsemestre_id, REQUEST=None):
"""Formulaire creation/inscription à un semestre extérieur"""
- etud = context.getEtudInfo(etudid=etudid, filled=1)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=1)[0]
H = [
html_sco_header.sco_header(context, REQUEST),
"""
Enregistrement d'une inscription antérieure dans un autre établissement
@@ -214,7 +214,7 @@ def formsemestre_ext_edit_ue_validations(
mais pas enregistrée.
"""
sem = sco_formsemestre.get_formsemestre(context, formsemestre_id)
- etud = context.getEtudInfo(etudid=etudid, filled=True)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=True)[0]
ue_list = _list_ue_with_coef_and_validations(context, sem, etudid)
descr = _ue_form_description(context, ue_list, REQUEST.form)
if REQUEST and REQUEST.method == "GET":
diff --git a/app/scodoc/sco_formsemestre_inscriptions.py b/app/scodoc/sco_formsemestre_inscriptions.py
index 9bc0b0cb5..20bd19701 100644
--- a/app/scodoc/sco_formsemestre_inscriptions.py
+++ b/app/scodoc/sco_formsemestre_inscriptions.py
@@ -119,7 +119,7 @@ def formsemestre_inscription_with_modules_form(
"""Formulaire inscription de l'etud dans l'un des semestres existants.
Si only_ext, ne montre que les semestre extérieurs.
"""
- etud = context.getEtudInfo(etudid=etudid, filled=1)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=1)[0]
H = [
html_sco_header.sco_header(context, REQUEST),
"Inscription de %s" % etud["nomprenom"],
@@ -178,7 +178,7 @@ def formsemestre_inscription_with_modules(
if multiple_ok:
multiple_ok = int(multiple_ok)
sem = sco_formsemestre.get_formsemestre(context, formsemestre_id)
- etud = context.getEtudInfo(etudid=etudid, filled=1)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=1)[0]
H = [
html_sco_header.html_sem_header(
context,
@@ -278,7 +278,7 @@ def formsemestre_inscription_option(context, etudid, formsemestre_id, REQUEST=No
if sem["etat"] != "1":
raise ScoValueError("Modification impossible: semestre verrouille")
- etud = context.getEtudInfo(etudid=etudid, filled=1)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=1)[0]
nt = sco_core.get_notes_cache(context).get_NotesTable(
context, formsemestre_id
) # > get_etud_ue_status
@@ -571,7 +571,7 @@ def est_inscrit_ailleurs(context, etudid, formsemestre_id):
temps que celui indiqué (par formsemestre_id).
Retourne la liste des semestres concernés (ou liste vide).
"""
- etud = context.getEtudInfo(etudid=etudid, filled=1)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=1)[0]
sem = sco_formsemestre.get_formsemestre(context, formsemestre_id)
debut_s = sem["dateord"]
fin_s = DateDMYtoISO(sem["date_fin"])
@@ -616,7 +616,7 @@ def formsemestre_inscrits_ailleurs(context, formsemestre_id, REQUEST=None):
insd = list_inscrits_ailleurs(context, formsemestre_id)
# liste ordonnée par nom
etudlist = [
- context.getEtudInfo(etudid=etudid, filled=1)[0]
+ scolars.get_etud_info(etudid=etudid, filled=1)[0]
for etudid in insd.keys()
if insd[etudid]
]
diff --git a/app/scodoc/sco_formsemestre_validation.py b/app/scodoc/sco_formsemestre_validation.py
index af2516030..fabbff05d 100644
--- a/app/scodoc/sco_formsemestre_validation.py
+++ b/app/scodoc/sco_formsemestre_validation.py
@@ -91,7 +91,7 @@ def formsemestre_validation_etud_form(
if readonly:
check = True
- etud = context.getEtudInfo(etudid=etudid, filled=True)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=True)[0]
Se = sco_parcours_dut.SituationEtudParcours(context, etud, formsemestre_id)
if Se.sem["etat"] != "1":
raise ScoValueError("validation: semestre verrouille")
@@ -108,13 +108,13 @@ def formsemestre_validation_etud_form(
Footer = ["
"]
# Navigation suivant/precedent
if etud_index_prev != None:
- etud_p = context.getEtudInfo(etudid=T[etud_index_prev][-1], filled=True)[0]
+ etud_p = scolars.get_etud_info(etudid=T[etud_index_prev][-1], filled=True)[0]
Footer.append(
'Etud. précédent (%s)'
% (formsemestre_id, etud_index_prev, etud_p["nomprenom"])
)
if etud_index_next != None:
- etud_n = context.getEtudInfo(etudid=T[etud_index_next][-1], filled=True)[0]
+ etud_n = scolars.get_etud_info(etudid=T[etud_index_next][-1], filled=True)[0]
Footer.append(
'Etud. suivant (%s)'
% (formsemestre_id, etud_index_next, etud_n["nomprenom"])
@@ -333,7 +333,7 @@ def formsemestre_validation_etud(
REQUEST=None,
):
"""Enregistre validation"""
- etud = context.getEtudInfo(etudid=etudid, filled=True)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=True)[0]
Se = sco_parcours_dut.SituationEtudParcours(context, etud, formsemestre_id)
# retrouve la decision correspondant au code:
choices = Se.get_possible_choices(assiduite=True)
@@ -368,7 +368,7 @@ def formsemestre_validation_etud_manu(
"""Enregistre validation"""
if assidu:
assidu = 1
- etud = context.getEtudInfo(etudid=etudid, filled=True)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=True)[0]
Se = sco_parcours_dut.SituationEtudParcours(context, etud, formsemestre_id)
if code_etat in Se.parcours.UNUSED_CODES:
raise ScoValueError("code decision invalide dans ce parcours")
@@ -862,7 +862,7 @@ def do_formsemestre_validation_auto(context, formsemestre_id, REQUEST):
nb_valid = 0
conflicts = [] # liste des etudiants avec decision differente déjà saisie
for etudid in etudids:
- etud = context.getEtudInfo(etudid=etudid, filled=True)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=True)[0]
Se = sco_parcours_dut.SituationEtudParcours(context, etud, formsemestre_id)
ins = context.do_formsemestre_inscription_list(
{"etudid": etudid, "formsemestre_id": formsemestre_id}
@@ -964,7 +964,7 @@ def formsemestre_fix_validation_ues(context, formsemestre_id, REQUEST=None):
modifs = [] # liste d'étudiants modifiés
cnx = context.GetDBConnexion(autocommit=False)
for etudid in etudids:
- etud = context.getEtudInfo(etudid=etudid, filled=True)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=True)[0]
Se = sco_parcours_dut.SituationEtudParcours(context, etud, formsemestre_id)
ins = context.do_formsemestre_inscription_list(
{"etudid": etudid, "formsemestre_id": formsemestre_id}
@@ -1071,7 +1071,7 @@ def formsemestre_validate_previous_ue(context, formsemestre_id, etudid, REQUEST=
"""Form. saisie UE validée hors ScoDoc
(pour étudiants arrivant avec un UE antérieurement validée).
"""
- etud = context.getEtudInfo(etudid=etudid, filled=True)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=True)[0]
sem = sco_formsemestre.get_formsemestre(context, formsemestre_id)
Fo = context.formation_list(args={"formation_id": sem["formation_id"]})[0]
diff --git a/app/scodoc/sco_groups.py b/app/scodoc/sco_groups.py
index 6c2dbf452..d3669fec7 100644
--- a/app/scodoc/sco_groups.py
+++ b/app/scodoc/sco_groups.py
@@ -469,7 +469,7 @@ def XMLgetGroupsInPartition(context, partition_id, REQUEST=None): # was XMLgetG
group_name=group["group_name"],
)
for e in get_group_members(context, group["group_id"]):
- etud = context.getEtudInfo(etudid=e["etudid"], filled=1)[0]
+ etud = scolars.get_etud_info(etudid=e["etudid"], filled=1)[0]
doc._push()
doc.etud(
etudid=e["etudid"],
@@ -494,7 +494,7 @@ def XMLgetGroupsInPartition(context, partition_id, REQUEST=None): # was XMLgetG
group_name="",
)
for etudid in etuds_set:
- etud = context.getEtudInfo(etudid=etudid, filled=1)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=1)[0]
doc._push()
doc.etud(
etudid=etud["etudid"],
@@ -1299,7 +1299,7 @@ def get_prev_moy(context, etudid, formsemestre_id):
"""
import sco_parcours_dut
- info = context.getEtudInfo(etudid=etudid, filled=True)
+ info = scolars.get_etud_info(etudid=etudid, filled=True)
if not info:
raise ScoValueError("etudiant invalide: etudid=%s" % etudid)
etud = info[0]
diff --git a/app/scodoc/sco_groups_view.py b/app/scodoc/sco_groups_view.py
index 9bac0ee7d..20386e8c0 100644
--- a/app/scodoc/sco_groups_view.py
+++ b/app/scodoc/sco_groups_view.py
@@ -785,7 +785,7 @@ def groups_table(
# remplis infos lycee si on a que le code lycée
# et ajoute infos inscription
for m in groups_infos.members:
- etud = context.getEtudInfo(m["etudid"], filled=True)[0]
+ etud = scolars.get_etud_info(m["etudid"], filled=True)[0]
m.update(etud)
scolars.etud_add_lycee_infos(etud)
# et ajoute le parcours
@@ -974,7 +974,7 @@ def export_groups_as_moodle_csv(context, formsemestre_id=None, REQUEST=None):
partition = sco_groups.get_partition(context, partition_id)
members = partitions_etud_groups[partition_id]
for etudid in members:
- etud = context.getEtudInfo(etudid=etudid, filled=True)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=True)[0]
group_name = members[etudid]["group_name"]
elts = [moodle_sem_name]
if partition["partition_name"]:
diff --git a/app/scodoc/sco_inscr_passage.py b/app/scodoc/sco_inscr_passage.py
index 6d41edc65..948114cd2 100644
--- a/app/scodoc/sco_inscr_passage.py
+++ b/app/scodoc/sco_inscr_passage.py
@@ -59,7 +59,7 @@ def list_authorized_etuds_by_sem(context, sem, delai=274):
for e in liste:
# Filtre ceux qui se sont déjà inscrit dans un semestre APRES le semestre src
auth_used = False # autorisation deja utilisée ?
- etud = context.getEtudInfo(etudid=e["etudid"], filled=True)[0]
+ etud = scolars.get_etud_info(etudid=e["etudid"], filled=True)[0]
for isem in etud["sems"]:
if ndb.DateDMYtoISO(isem["date_debut"]) >= ndb.DateDMYtoISO(
src["date_fin"]
@@ -114,7 +114,7 @@ def list_inscrits(context, formsemestre_id, with_dems=False):
inscr = {}
for i in ins:
etudid = i["etudid"]
- inscr[etudid] = context.getEtudInfo(etudid=etudid, filled=True)[0]
+ inscr[etudid] = scolars.get_etud_info(etudid=etudid, filled=True)[0]
return inscr
@@ -172,7 +172,7 @@ def do_inscrit(context, sem, etudids, REQUEST=None, inscrit_groupes=False):
# (mise en correspondance à partir du nom du groupe, sans tenir compte
# du nom de la partition: évidemment, cela ne marche pas si on a les
# même noms de groupes dans des partitions différentes)
- etud = context.getEtudInfo(etudid=etudid, filled=True)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=True)[0]
log("cherche groupes de %(nom)s" % etud)
# recherche le semestre origine (il serait plus propre de l'avoir conservé!)
diff --git a/app/scodoc/sco_liste_notes.py b/app/scodoc/sco_liste_notes.py
index 71ff91352..0fab9d741 100644
--- a/app/scodoc/sco_liste_notes.py
+++ b/app/scodoc/sco_liste_notes.py
@@ -284,7 +284,7 @@ def _make_table_notes(
for etudid in etudids:
css_row_class = None
# infos identite etudiant
- etud = context.getEtudInfo(etudid=etudid, filled=1)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=1)[0]
# infos inscription
inscr = context.do_formsemestre_inscription_list(
{"etudid": etudid, "formsemestre_id": M["formsemestre_id"]}
@@ -803,7 +803,7 @@ def evaluation_check_absences_html(
if not etudids and show_ok:
H.append("
- aucun
")
for etudid in etudids:
- etud = context.getEtudInfo(etudid=etudid, filled=True)[0]
+ etud = scolars.get_etud_info(etudid=etudid, filled=True)[0]
H.append(
'- %(nomprenom)s'
% etud
diff --git a/app/scodoc/sco_moduleimpl_inscriptions.py b/app/scodoc/sco_moduleimpl_inscriptions.py
index 687b52729..30e2905fa 100644
--- a/app/scodoc/sco_moduleimpl_inscriptions.py
+++ b/app/scodoc/sco_moduleimpl_inscriptions.py
@@ -87,7 +87,7 @@ def moduleimpl_inscriptions_edit(
# Liste des inscrits à ce semestre
inscrits = context.Notes.do_formsemestre_inscription_listinscrits(formsemestre_id)
for ins in inscrits:
- etuds_info = context.getEtudInfo(etudid=ins["etudid"], filled=1)
+ etuds_info = scolars.get_etud_info(etudid=ins["etudid"], filled=1)
if not etuds_info:
log(
"moduleimpl_inscriptions_edit: incoherency for etudid=%s !"
@@ -343,7 +343,7 @@ def moduleimpl_inscriptions_stats(context, formsemestre_id, REQUEST=None):
)
H.append("
")
for info in UECaps[ue["ue_id"]]:
- etud = context.getEtudInfo(etudid=info["etudid"], filled=True)[0]
+ etud = scolars.get_etud_info(etudid=info["etudid"], filled=True)[0]
H.append(
'- %(nomprenom)s'
% etud
@@ -447,7 +447,7 @@ def _fmt_etud_set(context, ins, max_list_size=7):
return "%d étudiants" % len(ins)
etuds = []
for etudid in ins:
- etuds.append(context.getEtudInfo(etudid=etudid, filled=True)[0])
+ etuds.append(scolars.get_etud_info(etudid=etudid, filled=True)[0])
etuds.sort(lambda x, y: cmp(x["nom"], y["nom"]))
return ", ".join(
[
diff --git a/app/scodoc/sco_page_etud.py b/app/scodoc/sco_page_etud.py
index 090ed3d45..c39ca695b 100644
--- a/app/scodoc/sco_page_etud.py
+++ b/app/scodoc/sco_page_etud.py
@@ -482,7 +482,8 @@ def ficheEtud(context, etudid=None, REQUEST=None):