diff --git a/app/views/absences.py b/app/views/absences.py index 9af208ef..a475988b 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, + ) + # -------------------------------------------------------------------- #