forked from ScoDoc/ScoDoc
Update opolka/ScoDoc from ScoDoc/ScoDoc #2
@ -86,8 +86,9 @@ def handle_invalid_csrf(exc):
|
||||
return render_template("error_csrf.j2", exc=exc), 404
|
||||
|
||||
|
||||
def handle_pdf_format_error(exc):
|
||||
return "ay ay ay"
|
||||
# def handle_pdf_format_error(exc):
|
||||
# return "ay ay ay"
|
||||
handle_pdf_format_error = handle_sco_value_error
|
||||
|
||||
|
||||
def internal_server_error(exc):
|
||||
|
@ -46,6 +46,7 @@ from reportlab.lib.colors import Color
|
||||
from app.models import FormSemestre
|
||||
|
||||
from app.scodoc import codes_cursus
|
||||
from app.scodoc.sco_exceptions import ScoPDFFormatError
|
||||
from app.scodoc import sco_pv_dict
|
||||
from app.scodoc import sco_pdf
|
||||
from app.scodoc import sco_preferences
|
||||
@ -217,6 +218,7 @@ def _pvjury_pdf_type(
|
||||
f"""<para align="center">Jury tenu le {date_jury}</para>""", style
|
||||
)
|
||||
|
||||
try:
|
||||
objects += sco_pdf.make_paras(
|
||||
"<para>"
|
||||
+ (sco_preferences.get_preference("PV_INTRO", formsemestre.id) or "")
|
||||
@ -231,6 +233,8 @@ def _pvjury_pdf_type(
|
||||
+ "</para>",
|
||||
style_bullet,
|
||||
)
|
||||
except KeyError as exc:
|
||||
raise ScoPDFFormatError(msg=f"balise inconnue: {exc.args[0]}") from exc
|
||||
|
||||
objects += sco_pdf.make_paras(
|
||||
"""<para>Le jury propose les décisions suivantes :</para>""", style
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- mode: python -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
SCOVERSION = "9.6.65"
|
||||
SCOVERSION = "9.6.66"
|
||||
|
||||
SCONAME = "ScoDoc"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user