From 862ffb89a1a0fbf9b569281cc200240a9ea7521c Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 13 Dec 2021 22:15:42 +0100 Subject: [PATCH] publication API ListeAbsEtud compat ScoDoc7 --- app/views/absences.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/app/views/absences.py b/app/views/absences.py index 9af208ef7..a475988b0 100644 --- a/app/views/absences.py +++ b/app/views/absences.py @@ -245,7 +245,26 @@ sco_publish( methods=["GET", "POST"], ) -sco_publish("/ListeAbsEtud", sco_abs_views.ListeAbsEtud, Permission.ScoView) +# Antédiluvienne fonction: #deprecated +@bp.route("/ListeAbsEtud", methods=["GET", "POST"]) # pour compat anciens clients PHP +@scodoc +@permission_required_compat_scodoc7(Permission.ScoView) +@scodoc7func +def ListeAbsEtud( + etudid, + with_evals=True, + format="html", + absjust_only=0, + sco_year=None, +): + return sco_abs_views.ListeAbsEtud( + etudid, + with_evals=with_evals, + format=format, + absjust_only=absjust_only, + sco_year=sco_year, + ) + # -------------------------------------------------------------------- #