forked from ScoDoc/ScoDoc
WIP: reorganisation code formations
This commit is contained in:
parent
a9fd1296bc
commit
da472668b5
1
app/formations/__init__.py
Normal file
1
app/formations/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
# Fonctions et vues sur les formations ScoDoc
|
@ -180,7 +180,7 @@ def formation_table_recap(formation: Formation, fmt="html") -> Response:
|
||||
|
||||
|
||||
def export_recap_formations_annee_scolaire(annee_scolaire):
|
||||
"""Exporte un zip des recap (excel) des formatons de tous les semestres
|
||||
"""Exporte un zip des recap (excel) des formations de tous les semestres
|
||||
de l'année scolaire indiquée.
|
||||
"""
|
||||
annee_scolaire = int(annee_scolaire)
|
@ -110,7 +110,6 @@ from app.scodoc import (
|
||||
sco_evaluation_recap,
|
||||
sco_export_results,
|
||||
sco_formations,
|
||||
sco_formation_recap,
|
||||
sco_formation_versions,
|
||||
sco_formsemestre,
|
||||
sco_formsemestre_custommenu,
|
||||
@ -142,6 +141,7 @@ from app.scodoc import (
|
||||
sco_undo_notes,
|
||||
sco_users,
|
||||
)
|
||||
from app.formations import formation_recap
|
||||
from app.scodoc.gen_tables import GenTable
|
||||
from app.scodoc.sco_permissions import Permission
|
||||
from app.scodoc.TrivialFormulator import TrivialFormulator
|
||||
@ -552,12 +552,12 @@ def formation_table_recap(formation_id: int):
|
||||
"Tableau récap. de la formation"
|
||||
formation = Formation.get_formation(formation_id)
|
||||
fmt = request.args.get("fmt", "html")
|
||||
return sco_formation_recap.formation_table_recap(formation, fmt=fmt)
|
||||
return formation_recap.formation_table_recap(formation, fmt=fmt)
|
||||
|
||||
|
||||
sco_publish(
|
||||
"/export_recap_formations_annee_scolaire",
|
||||
sco_formation_recap.export_recap_formations_annee_scolaire,
|
||||
formation_recap.export_recap_formations_annee_scolaire,
|
||||
Permission.ScoView,
|
||||
)
|
||||
sco_publish(
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- mode: python -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
SCOVERSION = "9.7.27"
|
||||
SCOVERSION = "9.7.28"
|
||||
|
||||
SCONAME = "ScoDoc"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user