diff --git a/app/pe/pe_view.py b/app/pe/pe_view.py index f67fb3206..7b3a4211d 100644 --- a/app/pe/pe_view.py +++ b/app/pe/pe_view.py @@ -37,15 +37,21 @@ from flask import flash, g, redirect, render_template, request, send_file, url_for +from app.decorators import permission_required, scodoc from app.models import FormSemestre from app.pe import pe_comp from app.pe import pe_jury from app.views import ScoData from app.scodoc.sco_exceptions import ScoValueError +from app.scodoc.sco_permissions import Permission import app.scodoc.sco_utils as scu +from app.views import notes_bp as bp -# called from the web, POST or GET + +@bp.route("/pe_view_sem_recap/", methods=("GET", "POST")) +@scodoc +@permission_required(Permission.ScoView) def pe_view_sem_recap(formsemestre_id: int): """Génération des avis de poursuite d'étude""" diff --git a/app/templates/pe/pe_view_sem_recap.j2 b/app/templates/pe/pe_view_sem_recap.j2 index eef5a3d7e..49884d8d1 100644 --- a/app/templates/pe/pe_view_sem_recap.j2 +++ b/app/templates/pe/pe_view_sem_recap.j2 @@ -40,7 +40,7 @@

-
+
diff --git a/app/views/notes.py b/app/views/notes.py index 7544e50fe..b29fd965b 100644 --- a/app/views/notes.py +++ b/app/views/notes.py @@ -87,22 +87,18 @@ from app.decorators import ( # --------------- - +from app.pe import pe_view # ne pas enlever, ajoute des vues from app.scodoc import sco_bulletins_json, sco_utils as scu from app.scodoc import notesdb as ndb from app import log, send_scodoc_alarm -from app.scodoc.scolog import logdb - from app.scodoc.sco_exceptions import ( AccessDenied, ScoValueError, ScoInvalidIdType, ) from app.scodoc import html_sco_header -from app.pe import pe_view from app.scodoc import sco_apogee_compare -from app.scodoc import sco_archives from app.scodoc import sco_archives_formsemestre from app.scodoc import sco_assiduites from app.scodoc import sco_bulletins @@ -139,7 +135,6 @@ from app.scodoc import sco_lycee from app.scodoc import sco_moduleimpl from app.scodoc import sco_moduleimpl_inscriptions from app.scodoc import sco_moduleimpl_status -from app.scodoc import sco_permissions_check from app.scodoc import sco_placement from app.scodoc import sco_poursuite_dut from app.scodoc import sco_preferences @@ -3253,12 +3248,6 @@ sco_publish( sco_poursuite_dut.formsemestre_poursuite_report, Permission.ScoView, ) -sco_publish( - "/pe_view_sem_recap", - pe_view.pe_view_sem_recap, - Permission.ScoView, - methods=["GET", "POST"], -) sco_publish( "/report_debouche_date", sco_debouche.report_debouche_date, Permission.ScoView )