From fcbbc877bc24794f85377632111a465eb85da5b1 Mon Sep 17 00:00:00 2001 From: viennet Date: Thu, 24 Dec 2020 01:00:41 +0100 Subject: [PATCH] Liste enseignants dans table description semestre (DS, Le Havre) --- sco_formsemestre_status.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sco_formsemestre_status.py b/sco_formsemestre_status.py index cc65b0f00..fe0707426 100644 --- a/sco_formsemestre_status.py +++ b/sco_formsemestre_status.py @@ -644,6 +644,12 @@ def formsemestre_description_table( ModInscrits = context.do_moduleimpl_inscription_list( moduleimpl_id=M["moduleimpl_id"] ) + enseignants = ", ".join( + [ + context.Users.user_info(m["ens_id"], REQUEST)["nomprenom"] + for m in M["ens"] + ] + ) l = { "UE": M["ue"]["acronyme"], "Code": M["module"]["code"], @@ -652,6 +658,8 @@ def formsemestre_description_table( "Inscrits": len(ModInscrits), "Responsable": context.Users.user_info(M["responsable_id"])["nomprenom"], "_Responsable_class": "scotext", + "Enseignants": enseignants, + "_Enseignants_class": "scotext", "Coef.": M["module"]["coefficient"], # 'ECTS' : M['module']['ects'], # Lien sur titre -> module @@ -689,7 +697,7 @@ def formsemestre_description_table( columns_ids = ["UE", "Code", "Module", "Coef."] if context.get_preference("bul_show_ects", formsemestre_id): columns_ids += ["ects"] - columns_ids += ["Inscrits", "Responsable"] + columns_ids += ["Inscrits", "Responsable", "Enseignants"] if with_evals: columns_ids += [ "jour",