This commit is contained in:
Emmanuel Viennet 2021-01-23 22:57:01 +01:00
parent d6b6796ae5
commit d57c2c3a4d
3 changed files with 17 additions and 13 deletions

View File

@ -70,6 +70,7 @@ from TrivialFormulator import TrivialFormulator, TF
from gen_tables import GenTable
import scolars
import sco_formsemestre
import sco_moduleimpl
import sco_groups
import sco_groups_view
import sco_excel
@ -547,8 +548,8 @@ class ZAbsences(
desc = a["description"]
if a["moduleimpl_id"] and a["moduleimpl_id"] != "NULL":
# Trouver le nom du module
Mlist = self.Notes.do_moduleimpl_withmodule_list(
moduleimpl_id=a["moduleimpl_id"]
Mlist = sco_moduleimpl.do_moduleimpl_withmodule_list(
self.Notes, moduleimpl_id=a["moduleimpl_id"]
)
if Mlist:
M = Mlist[0]
@ -713,8 +714,8 @@ class ZAbsences(
mod_inscrits = set(
[
x["etudid"]
for x in self.Notes.do_moduleimpl_inscription_list(
moduleimpl_id=moduleimpl_id
for x in sco_moduleimpl.do_moduleimpl_inscription_list(
self.Notes, moduleimpl_id=moduleimpl_id
)
]
)
@ -847,8 +848,8 @@ class ZAbsences(
mod_inscrits = set(
[
x["etudid"]
for x in self.Notes.do_moduleimpl_inscription_list(
moduleimpl_id=moduleimpl_id
for x in sco_moduleimpl.do_moduleimpl_inscription_list(
self.Notes, moduleimpl_id=moduleimpl_id
)
]
)
@ -1221,8 +1222,8 @@ class ZAbsences(
return ""
ex = []
for ev in a["evals"]:
mod = self.Notes.do_moduleimpl_withmodule_list(
moduleimpl_id=ev["moduleimpl_id"]
mod = sco_moduleimpl.do_moduleimpl_withmodule_list(
self.Notes, moduleimpl_id=ev["moduleimpl_id"]
)[0]
if format == "html":
ex.append(
@ -1238,8 +1239,8 @@ class ZAbsences(
def descr_abs(a):
ex = []
for ev in a.get("absent", []):
mod = self.Notes.do_moduleimpl_withmodule_list(
moduleimpl_id=ev["moduleimpl_id"]
mod = sco_moduleimpl.do_moduleimpl_withmodule_list(
self.Notes, moduleimpl_id=ev["moduleimpl_id"]
)[0]
if format == "html":
ex.append(

View File

@ -240,8 +240,11 @@ def do_moduleimpl_inscrit_etuds(
# Inscriptions au module:
inmod_set = set(
[
# hum ?
x["etudid"]
for x in context.do_moduleimpl_inscription_list(moduleimpl_id=moduleimpl_id)
for x in do_moduleimpl_inscription_list(
context, moduleimpl_id=moduleimpl_id
)
]
)
for etudid in etudids:

View File

@ -813,8 +813,8 @@ def _pvjury_pdf_type(
"""<para spaceBefore="10mm" align="right">
Le %s, %s</para>"""
% (
context.get_preference("DirectorTitle", formsemestre_id),
context.get_preference("DirectorName", formsemestre_id),
context.get_preference("DirectorTitle", formsemestre_id) or "",
context.get_preference("DirectorName", formsemestre_id) or "",
),
style,
)