forked from ScoDoc/ScoDoc
Si format bulletin inconnu, revient au défaut
This commit is contained in:
parent
4fda9cb391
commit
cadc26d581
@ -266,6 +266,11 @@ def make_formsemestre_bulletinetud(
|
|||||||
bul_class_name = sco_preferences.get_preference("bul_class_name", formsemestre_id)
|
bul_class_name = sco_preferences.get_preference("bul_class_name", formsemestre_id)
|
||||||
|
|
||||||
gen_class = None
|
gen_class = None
|
||||||
|
for bul_class_name in (
|
||||||
|
sco_preferences.get_preference("bul_class_name", formsemestre_id),
|
||||||
|
# si pas trouvé (modifs locales bizarres ,), ré-essaye avec la valeur par défaut
|
||||||
|
bulletin_default_class_name(),
|
||||||
|
):
|
||||||
if infos.get("type") == "BUT" and format.startswith("pdf"):
|
if infos.get("type") == "BUT" and format.startswith("pdf"):
|
||||||
gen_class = bulletin_get_class(bul_class_name + "BUT")
|
gen_class = bulletin_get_class(bul_class_name + "BUT")
|
||||||
if gen_class is None:
|
if gen_class is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user