-Responsable: | """,
- sco_users.user_info(M["responsable_id"])["nomprenom"],
- """(%(responsable_id)s)""" % M,
+
+
+ Responsable: | """,
+ module_resp.get_nomcomplet(), # sco_users.user_info(M["responsable_id"])["nomprenom"],
+ f"""({module_resp.user_name})""",
]
try:
sco_moduleimpl.can_change_module_resp(REQUEST, moduleimpl_id)
diff --git a/app/views/absences.py b/app/views/absences.py
index 0068808c..1b76a69e 100644
--- a/app/views/absences.py
+++ b/app/views/absences.py
@@ -553,7 +553,7 @@ def SignaleAbsenceGrSemestre(
nwl = 0
url_link_semaines = base_url_noweeks + "&nbweeks=%s" % nwl
if moduleimpl_id:
- url_link_semaines += "&moduleimpl_id=" + moduleimpl_id
+ url_link_semaines += "&moduleimpl_id=" + str(moduleimpl_id)
#
dates = [x.ISO() for x in dates]
dayname = sco_abs.day_names()[jourdebut.weekday]
diff --git a/app/views/notes.py b/app/views/notes.py
index e684ff2c..127c1a98 100644
--- a/app/views/notes.py
+++ b/app/views/notes.py
@@ -686,14 +686,14 @@ def edit_enseignants_form(REQUEST, moduleimpl_id):
# Liste des enseignants avec forme pour affichage / saisie avec suggestion
userlist = sco_users.get_user_list()
- login2display = {} # user_name : forme pour affichage = "NOM Prenom (login)"
+ uid2display = {} # uid : forme pour affichage = "NOM Prenom (login)"(login)"
for u in userlist:
- login2display[u.user_name] = u.get_nomplogin()
- allowed_user_names = list(login2display.values())
+ uid2display[u.id] = u.get_nomplogin()
+ allowed_user_names = list(uid2display.values())
H = [
" | |