2022-05-04 23:11:20 +02:00
|
|
|
"""Utilitaires pour les tests de l'API
|
|
|
|
"""
|
2024-10-14 16:40:05 +02:00
|
|
|
|
2022-05-10 15:56:21 +02:00
|
|
|
import json
|
2022-05-04 23:11:20 +02:00
|
|
|
|
|
|
|
|
2022-05-09 16:26:23 +02:00
|
|
|
def verify_fields(json_response: dict, expected_fields: set) -> bool:
|
2022-05-02 16:29:26 +02:00
|
|
|
"""
|
2022-05-04 23:11:20 +02:00
|
|
|
Vérifie si les champs attendu de la réponse json sont présents
|
2022-05-02 16:29:26 +02:00
|
|
|
|
|
|
|
json_response : la réponse de la requête
|
2022-05-09 16:26:23 +02:00
|
|
|
expected_fields : ensemble des champs à vérifier
|
2022-05-02 16:29:26 +02:00
|
|
|
|
|
|
|
Retourne True ou False
|
|
|
|
"""
|
2022-05-09 16:26:23 +02:00
|
|
|
return all(field in json_response for field in expected_fields)
|
|
|
|
|
|
|
|
|
2022-07-29 16:19:40 +02:00
|
|
|
def verify_occurences_ids_etuds(json_response) -> bool:
|
2022-05-18 16:02:56 +02:00
|
|
|
"""
|
|
|
|
Vérifie si il n'y a pas deux fois le même id dans la liste d'étudiant donnée en paramètres
|
|
|
|
|
|
|
|
json_response : la réponse de la requête
|
|
|
|
|
|
|
|
Retourne True ou False
|
|
|
|
"""
|
2022-07-29 16:19:40 +02:00
|
|
|
etuds = json.loads(json_response)
|
2022-05-10 15:56:21 +02:00
|
|
|
|
2022-07-29 16:19:40 +02:00
|
|
|
ids = [etud["id"] for etud in etuds]
|
|
|
|
nips = [etud["code_nip"] for etud in etuds]
|
|
|
|
ines = [etud["code_ine"] for etud in etuds]
|
2022-05-10 15:56:21 +02:00
|
|
|
|
2022-07-29 16:19:40 +02:00
|
|
|
return (
|
|
|
|
(len(set(ids)) == len(ids))
|
|
|
|
and (len(set(nips)) == len(nips))
|
|
|
|
and (len(set(ines)) == len(ines))
|
|
|
|
)
|
2022-05-10 15:56:21 +02:00
|
|
|
|
|
|
|
|
2022-05-09 16:26:23 +02:00
|
|
|
DEPARTEMENT_FIELDS = [
|
|
|
|
"acronym",
|
2024-10-14 16:40:05 +02:00
|
|
|
"date_creation",
|
2022-05-09 16:26:23 +02:00
|
|
|
"description",
|
2024-10-14 16:40:05 +02:00
|
|
|
"id",
|
2022-05-09 16:26:23 +02:00
|
|
|
"visible",
|
|
|
|
]
|
|
|
|
|
2024-01-20 17:37:24 +01:00
|
|
|
# Champs "données personnelles"
|
|
|
|
ETUD_FIELDS_RESTRICTED = {
|
|
|
|
"boursier",
|
|
|
|
}
|
2022-05-09 16:26:23 +02:00
|
|
|
ETUD_FIELDS = {
|
2022-07-31 21:44:39 +02:00
|
|
|
"admission",
|
|
|
|
"adresses",
|
2022-05-09 16:26:23 +02:00
|
|
|
"civilite",
|
|
|
|
"code_ine",
|
|
|
|
"code_nip",
|
|
|
|
"date_naissance",
|
2022-05-16 16:04:33 +02:00
|
|
|
"dept_acronym",
|
|
|
|
"dept_id",
|
2022-05-09 16:26:23 +02:00
|
|
|
"dept_naissance",
|
|
|
|
"id",
|
|
|
|
"lieu_naissance",
|
|
|
|
"nationalite",
|
|
|
|
"nom",
|
|
|
|
"prenom",
|
2024-01-20 17:37:24 +01:00
|
|
|
} | ETUD_FIELDS_RESTRICTED
|
|
|
|
|
2022-05-09 16:26:23 +02:00
|
|
|
|
|
|
|
FORMATION_FIELDS = {
|
|
|
|
"acronyme",
|
|
|
|
"code_specialite",
|
2024-10-14 16:40:05 +02:00
|
|
|
"dept_id",
|
|
|
|
"formation_code",
|
|
|
|
"formation_id",
|
2022-06-15 16:03:31 +02:00
|
|
|
"id",
|
2024-10-14 16:40:05 +02:00
|
|
|
"referentiel_competence_id",
|
|
|
|
"titre_officiel",
|
2022-06-15 16:03:31 +02:00
|
|
|
"titre",
|
|
|
|
"type_parcours",
|
2024-10-14 16:40:05 +02:00
|
|
|
"version",
|
2022-06-15 16:03:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
FORMATION_EXPORT_FIELDS = {
|
2023-01-31 19:19:00 +01:00
|
|
|
# "dept_id" "id" "formation_id", pas présents sauf si export_with_ids
|
2022-06-15 16:03:31 +02:00
|
|
|
"acronyme",
|
|
|
|
"code_specialite",
|
2023-01-31 19:19:00 +01:00
|
|
|
"formation_code",
|
|
|
|
"referentiel_competence_id",
|
|
|
|
"titre_officiel",
|
2022-05-09 16:26:23 +02:00
|
|
|
"titre",
|
|
|
|
"type_parcours",
|
2022-06-15 16:03:31 +02:00
|
|
|
"ue",
|
2023-01-31 19:19:00 +01:00
|
|
|
"version",
|
2022-06-15 16:03:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
FORMATION_EXPORT_UE_FIELDS = {
|
|
|
|
"acronyme",
|
|
|
|
"code_apogee",
|
|
|
|
"coefficient",
|
|
|
|
"color",
|
2024-10-14 16:40:05 +02:00
|
|
|
"ects",
|
|
|
|
"is_external",
|
2022-06-15 16:03:31 +02:00
|
|
|
"matiere",
|
2024-10-14 16:40:05 +02:00
|
|
|
"numero",
|
|
|
|
"reference",
|
|
|
|
"semestre_idx",
|
|
|
|
"titre",
|
|
|
|
"type",
|
|
|
|
"ue_code",
|
2022-06-15 16:03:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
FORMATION_EXPORT_UE_MATIERE_FIELDS = {
|
|
|
|
"module",
|
2024-10-14 16:40:05 +02:00
|
|
|
"numero",
|
|
|
|
"titre",
|
2022-06-15 16:03:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
FORMATION_EXPORT_UE_MATIERE_MODULE_FIELDS = {
|
|
|
|
"abbrev",
|
2024-10-14 16:40:05 +02:00
|
|
|
"app_critiques",
|
|
|
|
"code_apogee",
|
2022-06-15 16:03:31 +02:00
|
|
|
"code",
|
2024-10-14 16:40:05 +02:00
|
|
|
"coefficient",
|
|
|
|
"coefficients",
|
|
|
|
"edt_id",
|
2022-06-15 16:03:31 +02:00
|
|
|
"heures_cours",
|
|
|
|
"heures_td",
|
2024-10-14 16:40:05 +02:00
|
|
|
"heures_tp",
|
2022-06-15 16:03:31 +02:00
|
|
|
"module_type",
|
2024-10-14 16:40:05 +02:00
|
|
|
"numero",
|
|
|
|
"parcours",
|
|
|
|
"semestre_id",
|
|
|
|
"titre",
|
2022-06-15 16:03:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
FORMATION_EXPORT_UE_MATIERE_MODULE_COEF_FIELDS = {
|
|
|
|
"ue_reference",
|
|
|
|
"coef",
|
2022-05-09 16:26:23 +02:00
|
|
|
}
|
|
|
|
|
2022-05-11 16:17:43 +02:00
|
|
|
FORMSEMESTRE_FIELDS = [
|
2024-10-14 16:40:05 +02:00
|
|
|
"block_moyenne_generale",
|
|
|
|
"block_moyennes",
|
2022-05-11 16:17:43 +02:00
|
|
|
"bul_bgcolor",
|
2024-10-14 16:40:05 +02:00
|
|
|
"bul_hide_xml",
|
|
|
|
"date_debut_iso",
|
|
|
|
"date_debut",
|
|
|
|
"date_fin_iso",
|
2022-05-11 16:17:43 +02:00
|
|
|
"date_fin",
|
2024-10-14 16:40:05 +02:00
|
|
|
"departement",
|
2022-05-11 16:17:43 +02:00
|
|
|
"dept_id",
|
2024-10-14 16:40:05 +02:00
|
|
|
"elt_annee_apo",
|
|
|
|
"elt_sem_apo",
|
2022-05-11 16:17:43 +02:00
|
|
|
"ens_can_edit_eval",
|
2024-10-14 16:40:05 +02:00
|
|
|
"etape_apo",
|
|
|
|
"etat",
|
2022-05-11 16:17:43 +02:00
|
|
|
"formation_id",
|
2024-10-14 16:40:05 +02:00
|
|
|
"formation",
|
|
|
|
"formsemestre_id",
|
2022-05-11 16:17:43 +02:00
|
|
|
"gestion_compensation",
|
2024-10-14 16:40:05 +02:00
|
|
|
"gestion_semestrielle",
|
|
|
|
"id",
|
|
|
|
"modalite",
|
|
|
|
"parcours",
|
|
|
|
"resp_can_change_ens",
|
|
|
|
"resp_can_edit",
|
|
|
|
"responsables",
|
|
|
|
"scodoc7_id",
|
2022-05-11 16:17:43 +02:00
|
|
|
"semestre_id",
|
|
|
|
"titre_formation",
|
2024-10-14 16:40:05 +02:00
|
|
|
"titre_num",
|
|
|
|
"titre",
|
2022-05-11 16:17:43 +02:00
|
|
|
]
|
|
|
|
|
2022-05-09 16:26:23 +02:00
|
|
|
FSEM_FIELDS = {
|
2022-11-01 17:39:18 +01:00
|
|
|
"block_moyenne_generale",
|
2024-10-14 16:40:05 +02:00
|
|
|
"block_moyennes",
|
2022-05-09 16:26:23 +02:00
|
|
|
"bul_bgcolor",
|
|
|
|
"bul_hide_xml",
|
|
|
|
"date_debut_iso",
|
|
|
|
"date_debut",
|
|
|
|
"date_fin_iso",
|
|
|
|
"date_fin",
|
|
|
|
"dept_id",
|
|
|
|
"elt_annee_apo",
|
|
|
|
"elt_sem_apo",
|
|
|
|
"ens_can_edit_eval",
|
|
|
|
"etat",
|
|
|
|
"formation_id",
|
|
|
|
"formsemestre_id",
|
|
|
|
"gestion_compensation",
|
|
|
|
"gestion_semestrielle",
|
|
|
|
"id",
|
|
|
|
"modalite",
|
|
|
|
"resp_can_change_ens",
|
|
|
|
"resp_can_edit",
|
|
|
|
"responsables",
|
|
|
|
"semestre_id",
|
|
|
|
"titre_num",
|
|
|
|
"titre",
|
|
|
|
}
|
|
|
|
|
|
|
|
MODIMPL_FIELDS = {
|
|
|
|
"computation_expr",
|
|
|
|
"ens",
|
2024-10-14 16:40:05 +02:00
|
|
|
"formsemestre_id",
|
|
|
|
"id",
|
|
|
|
"module_id",
|
2022-05-09 16:26:23 +02:00
|
|
|
"module",
|
2024-10-14 16:40:05 +02:00
|
|
|
"moduleimpl_id",
|
|
|
|
"responsable_id",
|
2022-05-09 16:26:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
MODULE_FIELDS = {
|
2024-10-14 16:40:05 +02:00
|
|
|
"abbrev",
|
2022-05-09 16:26:23 +02:00
|
|
|
"code_apogee",
|
2024-10-14 16:40:05 +02:00
|
|
|
"code",
|
2022-05-09 16:26:23 +02:00
|
|
|
"coefficient",
|
|
|
|
"ects",
|
|
|
|
"formation_id",
|
|
|
|
"heures_cours",
|
|
|
|
"heures_td",
|
2024-10-14 16:40:05 +02:00
|
|
|
"heures_tp",
|
|
|
|
"id",
|
|
|
|
"matiere_id",
|
2022-05-09 16:26:23 +02:00
|
|
|
"module_id",
|
2024-10-14 16:40:05 +02:00
|
|
|
"module_type",
|
|
|
|
"numero",
|
|
|
|
"semestre_id",
|
|
|
|
"titre",
|
|
|
|
"ue_id",
|
2022-05-09 16:26:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
UE_FIELDS = {
|
2024-10-14 16:40:05 +02:00
|
|
|
"acronyme",
|
|
|
|
"code_apogee",
|
|
|
|
"coefficient",
|
|
|
|
"color",
|
|
|
|
"ects",
|
2022-05-09 16:26:23 +02:00
|
|
|
"formation_id",
|
|
|
|
"id",
|
|
|
|
"is_external",
|
|
|
|
"numero",
|
2024-10-14 16:40:05 +02:00
|
|
|
"semestre_idx",
|
2022-05-09 16:26:23 +02:00
|
|
|
"titre",
|
2024-10-14 16:40:05 +02:00
|
|
|
"type",
|
|
|
|
"ue_code",
|
2022-05-09 16:26:23 +02:00
|
|
|
"ue_id",
|
|
|
|
}
|
2022-05-18 16:02:56 +02:00
|
|
|
|
|
|
|
BULLETIN_FIELDS = {
|
|
|
|
"date",
|
2024-10-14 16:40:05 +02:00
|
|
|
"etat_inscription",
|
2022-05-18 16:02:56 +02:00
|
|
|
"etudiant",
|
|
|
|
"formation",
|
|
|
|
"formsemestre_id",
|
|
|
|
"options",
|
2024-10-14 16:40:05 +02:00
|
|
|
"publie",
|
2022-05-18 16:02:56 +02:00
|
|
|
"ressources",
|
|
|
|
"saes",
|
|
|
|
"semestre",
|
2024-10-14 16:40:05 +02:00
|
|
|
"type",
|
|
|
|
"ues",
|
|
|
|
"version",
|
2022-05-18 16:02:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
BULLETIN_ETUDIANT_FIELDS = {
|
2024-10-14 16:40:05 +02:00
|
|
|
"boursier",
|
2022-05-18 16:02:56 +02:00
|
|
|
"civilite",
|
|
|
|
"code_ine",
|
|
|
|
"code_nip",
|
2024-10-14 16:40:05 +02:00
|
|
|
"codepostaldomicile",
|
2022-05-18 16:02:56 +02:00
|
|
|
"date_naissance",
|
|
|
|
"dept_acronym",
|
2024-10-14 16:40:05 +02:00
|
|
|
"dept_id",
|
|
|
|
"dept_naissance",
|
|
|
|
"description",
|
|
|
|
"domicile",
|
2022-05-18 16:02:56 +02:00
|
|
|
"email",
|
|
|
|
"emailperso",
|
|
|
|
"etudid",
|
2024-10-14 16:40:05 +02:00
|
|
|
"fax",
|
|
|
|
"fiche_url",
|
|
|
|
"id",
|
2022-05-18 16:02:56 +02:00
|
|
|
"lieu_naissance",
|
|
|
|
"nationalite",
|
2024-10-14 16:40:05 +02:00
|
|
|
"nom",
|
|
|
|
"nomprenom",
|
|
|
|
"paysdomicile",
|
2022-05-18 16:02:56 +02:00
|
|
|
"photo_url",
|
2024-10-14 16:40:05 +02:00
|
|
|
"prenom",
|
2022-05-18 16:02:56 +02:00
|
|
|
"telephone",
|
|
|
|
"telephonemobile",
|
|
|
|
"typeadresse",
|
2024-10-14 16:40:05 +02:00
|
|
|
"villedomicile",
|
2022-05-18 16:02:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
BULLETIN_FORMATION_FIELDS = {"id", "acronyme", "titre_officiel", "titre"}
|
|
|
|
|
|
|
|
BULLETIN_OPTIONS_FIELDS = {
|
|
|
|
"show_abs_modules",
|
2024-10-14 16:40:05 +02:00
|
|
|
"show_abs",
|
2022-05-18 16:02:56 +02:00
|
|
|
"show_codemodules",
|
2024-10-14 16:40:05 +02:00
|
|
|
"show_coef",
|
|
|
|
"show_date_inscr",
|
|
|
|
"show_ects",
|
2022-05-18 16:02:56 +02:00
|
|
|
"show_matieres",
|
2024-10-14 16:40:05 +02:00
|
|
|
"show_minmax_eval",
|
|
|
|
"show_minmax_mod",
|
|
|
|
"show_minmax",
|
2022-05-18 16:02:56 +02:00
|
|
|
"show_mod_rangs",
|
|
|
|
"show_moypromo",
|
2024-10-14 16:40:05 +02:00
|
|
|
"show_rangs",
|
2022-05-18 16:02:56 +02:00
|
|
|
"show_temporary",
|
2024-10-14 16:40:05 +02:00
|
|
|
"show_ue_cap_current",
|
|
|
|
"show_ue_cap_details",
|
|
|
|
"show_ue_rangs",
|
2022-05-18 16:02:56 +02:00
|
|
|
"show_uevalid",
|
2024-10-14 16:40:05 +02:00
|
|
|
"temporary_txt",
|
2022-05-18 16:02:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
BULLETIN_RESSOURCES_FIELDS = {
|
|
|
|
"R101",
|
|
|
|
"R102",
|
|
|
|
"R103",
|
|
|
|
"R104",
|
|
|
|
"R105",
|
|
|
|
"R106",
|
|
|
|
"R107",
|
|
|
|
"R108",
|
|
|
|
"R109",
|
|
|
|
"R110",
|
|
|
|
"R111",
|
|
|
|
"R112",
|
|
|
|
"R113",
|
|
|
|
"R114",
|
|
|
|
"R115",
|
|
|
|
}
|
|
|
|
|
|
|
|
BULLETIN_SAES_FIELDS = {
|
|
|
|
"SAE11",
|
|
|
|
"SAE12",
|
|
|
|
"SAE13",
|
|
|
|
"SAE14",
|
|
|
|
"SAE15",
|
|
|
|
"SAE16",
|
|
|
|
}
|
|
|
|
|
|
|
|
########### RESSOURCES ET SAES ###########
|
|
|
|
BULLETIN_RESSOURCES_ET_SAES_RESSOURCE_ET_SAE_FIELDS = {
|
2024-10-14 16:40:05 +02:00
|
|
|
"code_apogee",
|
|
|
|
"evaluations",
|
2022-05-18 16:02:56 +02:00
|
|
|
"id",
|
2024-10-14 16:40:05 +02:00
|
|
|
"moyenne",
|
2022-05-18 16:02:56 +02:00
|
|
|
"titre",
|
|
|
|
"url",
|
|
|
|
}
|
|
|
|
|
|
|
|
BULLETIN_RESSOURCES_ET_SAES_RESSOURCE_ET_SAE_EVALUATION_FIELDS = {
|
2024-10-14 16:40:05 +02:00
|
|
|
"coef",
|
2022-05-18 16:02:56 +02:00
|
|
|
"date",
|
2024-10-14 16:40:05 +02:00
|
|
|
"description",
|
2022-05-18 16:02:56 +02:00
|
|
|
"heure_debut",
|
|
|
|
"heure_fin",
|
2024-10-14 16:40:05 +02:00
|
|
|
"id",
|
2022-05-18 16:02:56 +02:00
|
|
|
"note",
|
2024-10-14 16:40:05 +02:00
|
|
|
"poids",
|
2022-05-18 16:02:56 +02:00
|
|
|
"url",
|
|
|
|
}
|
|
|
|
|
|
|
|
BULLETIN_RESSOURCES_ET_SAES_RESSOURCE_ET_SAE_EVALUATION_POIDS_FIELDS = {
|
|
|
|
"RT1.1",
|
|
|
|
"RT2.1",
|
|
|
|
"RT3.1",
|
|
|
|
}
|
|
|
|
|
|
|
|
BULLETIN_RESSOURCES_ET_SAES_RESSOURCE_ET_SAE_EVALUATION_NOTE_FIELDS = {
|
|
|
|
"max",
|
2024-10-14 16:40:05 +02:00
|
|
|
"min",
|
2022-05-18 16:02:56 +02:00
|
|
|
"moy",
|
2024-10-14 16:40:05 +02:00
|
|
|
"value",
|
2022-05-18 16:02:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
########### UES ###########
|
|
|
|
BULLETIN_UES_FIELDS = {"RT1.1", "RT2.1", "RT3.1"}
|
|
|
|
|
|
|
|
BULLETIN_UES_UE_FIELDS = {
|
2024-10-14 16:40:05 +02:00
|
|
|
"bonus",
|
|
|
|
"capitalise",
|
2022-05-18 16:02:56 +02:00
|
|
|
"color",
|
|
|
|
"competence",
|
2024-10-14 16:40:05 +02:00
|
|
|
"ECTS",
|
|
|
|
"id",
|
2022-05-18 16:02:56 +02:00
|
|
|
"malus",
|
2024-10-14 16:40:05 +02:00
|
|
|
"moyenne",
|
|
|
|
"numero",
|
2022-05-18 16:02:56 +02:00
|
|
|
"ressources",
|
|
|
|
"saes",
|
2024-10-14 16:40:05 +02:00
|
|
|
"titre",
|
|
|
|
"type",
|
2022-05-18 16:02:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
BULLETIN_UES_UE_MOYENNE_FIELDS = {"value", "min", "max", "moy", "rang", "total"}
|
|
|
|
|
|
|
|
BULLETIN_UES_RT11_RESSOURCES_FIELDS = {
|
|
|
|
"R101",
|
|
|
|
"R102",
|
|
|
|
"R103",
|
|
|
|
"R104",
|
|
|
|
"R106",
|
|
|
|
"R108",
|
|
|
|
"R110",
|
|
|
|
"R111",
|
|
|
|
"R112",
|
|
|
|
"R113",
|
|
|
|
"R114",
|
|
|
|
}
|
|
|
|
|
|
|
|
BULLETIN_UES_RT21_RESSOURCES_FIELDS = {
|
|
|
|
"R101",
|
|
|
|
"R103",
|
|
|
|
"R104",
|
|
|
|
"R105",
|
|
|
|
"R110",
|
|
|
|
"R111",
|
|
|
|
"R112",
|
|
|
|
"R113",
|
|
|
|
"R114",
|
|
|
|
"R115",
|
|
|
|
}
|
|
|
|
|
|
|
|
BULLETIN_UES_RT31_RESSOURCES_FIELDS = {
|
|
|
|
"R101",
|
|
|
|
"R107",
|
|
|
|
"R108",
|
|
|
|
"R109",
|
|
|
|
"R110",
|
|
|
|
"R111",
|
|
|
|
"R112",
|
|
|
|
"R115",
|
|
|
|
}
|
|
|
|
|
|
|
|
BULLETIN_UES_UE_RESSOURCES_RESSOURCE_FIELDS = {"id", "coef", "moyenne"}
|
|
|
|
|
|
|
|
BULLETIN_UES_RT11_SAES_FIELDS = {
|
|
|
|
"SAE11",
|
|
|
|
"SAE12",
|
|
|
|
}
|
|
|
|
|
|
|
|
BULLETIN_UES_RT21_SAES_FIELDS = {"SAE13"}
|
|
|
|
|
|
|
|
BULLETIN_UES_RT31_SAES_FIELDS = {
|
|
|
|
"SAE14",
|
|
|
|
"SAE15",
|
|
|
|
}
|
|
|
|
|
|
|
|
BULLETIN_UES_UE_SAES_SAE_FIELDS = {"id", "coef", "moyenne"}
|
|
|
|
|
|
|
|
|
|
|
|
BULLETIN_UES_UE_ECTS_FIELDS = {"acquis", "total"}
|
|
|
|
|
|
|
|
|
|
|
|
########### SEMESTRE ###########
|
|
|
|
BULLETIN_SEMESTRE_FIELDS = {
|
2024-10-14 16:40:05 +02:00
|
|
|
"absences",
|
|
|
|
"annee_universitaire",
|
2022-05-18 16:02:56 +02:00
|
|
|
"date_debut",
|
|
|
|
"date_fin",
|
|
|
|
"ECTS",
|
2024-10-14 16:40:05 +02:00
|
|
|
"etapes",
|
|
|
|
"groupes",
|
|
|
|
"inscription",
|
2022-05-18 16:02:56 +02:00
|
|
|
"notes",
|
2024-10-14 16:40:05 +02:00
|
|
|
"numero",
|
2022-05-18 16:02:56 +02:00
|
|
|
"rang",
|
|
|
|
}
|
|
|
|
|
|
|
|
BULLETIN_SEMESTRE_ABSENCES_FIELDS = {"injustifie", "total"}
|
|
|
|
|
|
|
|
BULLETIN_SEMESTRE_ECTS_FIELDS = {"acquis", "total"}
|
|
|
|
|
|
|
|
BULLETIN_SEMESTRE_NOTES_FIELDS = {"value", "min", "moy", "max"}
|
|
|
|
|
|
|
|
BULLETIN_SEMESTRE_RANG_FIELDS = {"value", "total"}
|
2022-06-15 16:03:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
EVAL_FIELDS = {
|
2024-10-14 16:40:05 +02:00
|
|
|
"coefficient",
|
2022-11-01 17:24:26 +01:00
|
|
|
"date_debut",
|
|
|
|
"date_fin",
|
2024-10-14 16:40:05 +02:00
|
|
|
"description",
|
|
|
|
"etat",
|
2022-11-01 17:24:26 +01:00
|
|
|
"evaluation_type",
|
2024-10-14 16:40:05 +02:00
|
|
|
"id",
|
2022-11-01 17:24:26 +01:00
|
|
|
"moduleimpl_id",
|
2022-07-29 16:19:40 +02:00
|
|
|
"nb_inscrits",
|
|
|
|
"nb_notes_abs",
|
|
|
|
"nb_notes_att",
|
|
|
|
"nb_notes_exc",
|
2024-10-14 16:40:05 +02:00
|
|
|
"nb_notes_manquantes",
|
|
|
|
"note_max",
|
|
|
|
"numero",
|
|
|
|
"poids",
|
|
|
|
"publish_incomplete",
|
2022-06-15 16:03:31 +02:00
|
|
|
"saisie_notes",
|
2024-10-14 16:40:05 +02:00
|
|
|
"visibulletin",
|
2022-06-15 16:03:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
SAISIE_NOTES_FIELDS = {"datetime_debut", "datetime_fin", "datetime_mediane"}
|
|
|
|
|
2022-06-21 15:59:12 +02:00
|
|
|
REF_COMP_FIELDS = {
|
|
|
|
"annexe",
|
2024-10-14 16:40:05 +02:00
|
|
|
"competences",
|
|
|
|
"dept_id",
|
|
|
|
"parcours",
|
|
|
|
"scodoc_date_loaded",
|
|
|
|
"scodoc_orig_filename",
|
2022-06-21 15:59:12 +02:00
|
|
|
"specialite_long",
|
2024-10-14 16:40:05 +02:00
|
|
|
"specialite",
|
2022-06-21 15:59:12 +02:00
|
|
|
"type_departement",
|
2024-10-14 16:40:05 +02:00
|
|
|
"type_structure",
|
2022-06-21 15:59:12 +02:00
|
|
|
"type_titre",
|
|
|
|
"version_orebut",
|
|
|
|
}
|
|
|
|
|
2022-06-15 16:03:31 +02:00
|
|
|
ABSENCES_FIELDS = {
|
|
|
|
"begin",
|
2024-10-14 16:40:05 +02:00
|
|
|
"description",
|
2022-06-15 16:03:31 +02:00
|
|
|
"end",
|
2024-10-14 16:40:05 +02:00
|
|
|
"estabs",
|
|
|
|
"estjust",
|
|
|
|
"jour",
|
|
|
|
"matin",
|
2022-06-15 16:03:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ABSENCES_GROUP_ETAT_FIELDS = {"etudid", "list_abs"}
|
2022-06-22 16:26:50 +02:00
|
|
|
|
|
|
|
|
2022-07-29 16:19:40 +02:00
|
|
|
FORMSEMESTRE_ETUD_FIELDS = {
|
2024-10-14 16:40:05 +02:00
|
|
|
"civilite",
|
2022-07-29 16:19:40 +02:00
|
|
|
"code_ine",
|
2024-10-14 16:40:05 +02:00
|
|
|
"code_nip",
|
|
|
|
"groups",
|
|
|
|
"id",
|
2022-06-22 16:26:50 +02:00
|
|
|
"nom_usuel",
|
2024-10-14 16:40:05 +02:00
|
|
|
"nom",
|
2022-06-22 16:26:50 +02:00
|
|
|
"prenom",
|
|
|
|
}
|
|
|
|
|
|
|
|
FORMSEMESTRE_ETUS_GROUPS_FIELDS = {
|
|
|
|
"bul_show_rank",
|
2024-10-14 16:40:05 +02:00
|
|
|
"formsemestre_id",
|
2022-06-22 16:26:50 +02:00
|
|
|
"group_id",
|
|
|
|
"group_name",
|
2024-10-14 16:40:05 +02:00
|
|
|
"id",
|
|
|
|
"numero",
|
|
|
|
"partition_id",
|
|
|
|
"partition_name",
|
|
|
|
"show_in_lists",
|
2022-06-22 16:26:50 +02:00
|
|
|
}
|
2022-06-23 16:20:19 +02:00
|
|
|
|
|
|
|
EVALUATIONS_FIELDS = {
|
|
|
|
"coefficient",
|
|
|
|
"date_debut",
|
|
|
|
"date_fin",
|
2022-11-01 11:19:28 +01:00
|
|
|
"description",
|
|
|
|
"evaluation_type",
|
|
|
|
"id",
|
|
|
|
"note_max",
|
|
|
|
"numero",
|
2022-06-23 16:20:19 +02:00
|
|
|
"poids",
|
2022-11-01 11:19:28 +01:00
|
|
|
"publish_incomplete",
|
2023-08-25 17:58:57 +02:00
|
|
|
"visibulletin",
|
2022-06-23 16:20:19 +02:00
|
|
|
}
|
|
|
|
|
2023-06-03 22:43:04 +02:00
|
|
|
NOTES_FIELDS = {
|
2022-06-23 16:20:19 +02:00
|
|
|
"comment",
|
|
|
|
"date",
|
2024-10-14 16:40:05 +02:00
|
|
|
"etudid",
|
|
|
|
"evaluation_id",
|
2022-06-23 16:20:19 +02:00
|
|
|
"uid",
|
2024-10-14 16:40:05 +02:00
|
|
|
"value",
|
2022-06-23 16:20:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PARTITIONS_FIELDS = {
|
2024-10-14 16:40:05 +02:00
|
|
|
"bul_show_rank",
|
2022-06-23 16:20:19 +02:00
|
|
|
"formsemestre_id",
|
2024-10-14 16:40:05 +02:00
|
|
|
"id",
|
2022-06-23 16:20:19 +02:00
|
|
|
"numero",
|
2024-10-14 16:40:05 +02:00
|
|
|
"partition_name",
|
2022-06-23 16:20:19 +02:00
|
|
|
"show_in_lists",
|
|
|
|
}
|
|
|
|
|
2022-07-29 16:19:40 +02:00
|
|
|
PARTITION_GROUPS_ETUD_FIELDS = {
|
2024-10-14 16:40:05 +02:00
|
|
|
"civilite",
|
|
|
|
"code_ine",
|
|
|
|
"code_nip",
|
2022-06-23 16:20:19 +02:00
|
|
|
"dept_id",
|
2024-10-14 16:40:05 +02:00
|
|
|
"id",
|
|
|
|
"nom_usuel",
|
2022-06-23 16:20:19 +02:00
|
|
|
"nom",
|
|
|
|
"prenom",
|
|
|
|
}
|
2022-07-07 13:06:57 +02:00
|
|
|
|
|
|
|
FORMSEMESTRE_BULLETINS_FIELDS = {
|
|
|
|
"date",
|
2024-10-14 16:40:05 +02:00
|
|
|
"etat_inscription",
|
2022-07-07 13:06:57 +02:00
|
|
|
"etudiant",
|
|
|
|
"formation",
|
|
|
|
"formsemestre_id",
|
|
|
|
"options",
|
2024-10-14 16:40:05 +02:00
|
|
|
"publie",
|
2022-07-07 13:06:57 +02:00
|
|
|
"ressources",
|
|
|
|
"saes",
|
|
|
|
"semestre",
|
2024-10-14 16:40:05 +02:00
|
|
|
"type",
|
|
|
|
"ues",
|
|
|
|
"version",
|
2022-07-07 13:06:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
FORMSEMESTRE_BULLETINS_ETU_FIELDS = {
|
2024-10-14 16:40:05 +02:00
|
|
|
"boursier",
|
2022-07-07 13:06:57 +02:00
|
|
|
"civilite",
|
|
|
|
"code_ine",
|
|
|
|
"code_nip",
|
2024-10-14 16:40:05 +02:00
|
|
|
"codepostaldomicile",
|
2022-07-07 13:06:57 +02:00
|
|
|
"date_naissance",
|
|
|
|
"dept_acronym",
|
2024-10-14 16:40:05 +02:00
|
|
|
"dept_id",
|
|
|
|
"dept_naissance",
|
|
|
|
"description",
|
|
|
|
"domicile",
|
2022-07-07 13:06:57 +02:00
|
|
|
"email",
|
|
|
|
"emailperso",
|
|
|
|
"etudid",
|
2024-10-14 16:40:05 +02:00
|
|
|
"fax",
|
2022-07-07 13:06:57 +02:00
|
|
|
"fiche_url",
|
|
|
|
"id",
|
2024-10-14 16:40:05 +02:00
|
|
|
"lieu_naissance",
|
|
|
|
"nationalite",
|
|
|
|
"nom",
|
|
|
|
"nomprenom",
|
2022-07-07 13:06:57 +02:00
|
|
|
"paysdomicile",
|
2024-10-14 16:40:05 +02:00
|
|
|
"photo_url",
|
|
|
|
"prenom",
|
|
|
|
"telephone",
|
2022-07-07 13:06:57 +02:00
|
|
|
"telephonemobile",
|
|
|
|
"typeadresse",
|
|
|
|
"villedomicile",
|
|
|
|
}
|
|
|
|
|
|
|
|
FORMSEMESTRE_BULLETINS_FORMATION_FIELDS = {
|
|
|
|
"acronyme",
|
2024-10-14 16:40:05 +02:00
|
|
|
"id",
|
2022-07-07 13:06:57 +02:00
|
|
|
"titre_officiel",
|
|
|
|
"titre",
|
|
|
|
}
|
|
|
|
|
|
|
|
FORMSEMESTRE_BULLETINS_OPT_FIELDS = {
|
|
|
|
"show_abs_modules",
|
2024-10-14 16:40:05 +02:00
|
|
|
"show_abs",
|
2022-07-07 13:06:57 +02:00
|
|
|
"show_codemodules",
|
2024-10-14 16:40:05 +02:00
|
|
|
"show_coef",
|
|
|
|
"show_date_inscr",
|
|
|
|
"show_ects",
|
2022-07-07 13:06:57 +02:00
|
|
|
"show_matieres",
|
2024-10-14 16:40:05 +02:00
|
|
|
"show_minmax_eval",
|
|
|
|
"show_minmax_mod",
|
|
|
|
"show_minmax",
|
2022-07-07 13:06:57 +02:00
|
|
|
"show_mod_rangs",
|
|
|
|
"show_moypromo",
|
2024-10-14 16:40:05 +02:00
|
|
|
"show_rangs",
|
2022-07-07 13:06:57 +02:00
|
|
|
"show_temporary",
|
2024-10-14 16:40:05 +02:00
|
|
|
"show_ue_cap_current",
|
|
|
|
"show_ue_cap_details",
|
|
|
|
"show_ue_rangs",
|
2022-07-07 13:06:57 +02:00
|
|
|
"show_uevalid",
|
2024-10-14 16:40:05 +02:00
|
|
|
"temporary_txt",
|
2022-07-07 13:06:57 +02:00
|
|
|
}
|