From c6f0fa86ea88ad5a39b1da93def4db10233bd082 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 11 Jul 2021 17:37:12 +0200 Subject: [PATCH] rewritten all ficheEtud urls using Flask --- app/scodoc/html_sidebar.py | 12 ++- app/scodoc/notes_table.py | 23 ++++-- app/scodoc/sco_abs_notification.py | 6 +- app/scodoc/sco_abs_views.py | 18 ++--- app/scodoc/sco_archives_etud.py | 26 ++++-- app/scodoc/sco_bulletins.py | 22 +++--- app/scodoc/sco_debouche.py | 10 ++- app/scodoc/sco_etape_apogee_view.py | 8 +- app/scodoc/sco_etape_bilan.py | 7 +- app/scodoc/sco_etud.py | 13 ++- app/scodoc/sco_export_results.py | 5 +- app/scodoc/sco_find_etud.py | 26 +++--- app/scodoc/sco_formsemestre_exterieurs.py | 11 ++- app/scodoc/sco_formsemestre_inscriptions.py | 59 ++++++++++---- app/scodoc/sco_formsemestre_validation.py | 18 +++-- app/scodoc/sco_groups_view.py | 14 +++- app/scodoc/sco_inscr_passage.py | 13 ++- app/scodoc/sco_liste_notes.py | 9 ++- app/scodoc/sco_lycee.py | 20 ++++- app/scodoc/sco_moduleimpl_inscriptions.py | 34 ++++++-- app/scodoc/sco_page_etud.py | 15 ++-- app/scodoc/sco_poursuite_dut.py | 9 ++- app/scodoc/sco_pvjury.py | 9 ++- app/scodoc/sco_report.py | 9 ++- app/scodoc/sco_trombino.py | 12 ++- app/views/absences.py | 23 ++++-- app/views/notes.py | 8 +- app/views/scolar.py | 88 +++++++++++++++------ 28 files changed, 381 insertions(+), 146 deletions(-) diff --git a/app/scodoc/html_sidebar.py b/app/scodoc/html_sidebar.py index 12218d36..266e8bab 100644 --- a/app/scodoc/html_sidebar.py +++ b/app/scodoc/html_sidebar.py @@ -28,7 +28,7 @@ """ Génération de la "sidebar" (marge gauche des pages HTML) """ -from flask import url_for +from flask import url_for, g import app.scodoc.sco_utils as scu from app.scodoc import sco_preferences @@ -81,7 +81,10 @@ def sidebar(context, REQUEST=None): from app.scodoc.sco_abs import getAbsSemEtud from app.scodoc import sco_etud - params = {"ScoURL": scu.ScoURL(), "SCO_USER_MANUAL": scu.SCO_USER_MANUAL} + params = { + "ScoURL": scu.ScoURL(), + "SCO_USER_MANUAL": scu.SCO_USER_MANUAL, + } H = ['