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