Sépare PE dans package 'pe' et le désactive en production.

This commit is contained in:
Emmanuel Viennet 2021-09-25 23:56:17 +02:00
parent fa5539fd75
commit ce31d3148d
11 changed files with 31 additions and 24 deletions

8
app/pe/README.md Normal file
View File

@ -0,0 +1,8 @@
# Module "Avis de poursuite d'étude"
Conçu et développé sur ScoDoc 7 par Cléo Baras (IUT de Grenoble) pour le DUT.
Actuellement non opérationnel dans ScoDoc 9.

View File

@ -33,9 +33,9 @@
import os import os
import codecs import codecs
import re import re
from app.scodoc import pe_jurype from app.pe import pe_jurype
from app.scodoc import pe_tagtable from app.pe import pe_tagtable
from app.scodoc import pe_tools from app.pe import pe_tools
import app.scodoc.sco_utils as scu import app.scodoc.sco_utils as scu
import app.scodoc.notesdb as ndb import app.scodoc.notesdb as ndb

View File

@ -52,10 +52,10 @@ from app.scodoc import sco_cache
from app.scodoc import sco_codes_parcours # sco_codes_parcours.NEXT -> sem suivant from app.scodoc import sco_codes_parcours # sco_codes_parcours.NEXT -> sem suivant
from app.scodoc import sco_etud from app.scodoc import sco_etud
from app.scodoc import sco_formsemestre from app.scodoc import sco_formsemestre
from app.scodoc import pe_tagtable from app.pe import pe_tagtable
from app.scodoc import pe_tools from app.pe import pe_tools
from app.scodoc import pe_semestretag from app.pe import pe_semestretag
from app.scodoc import pe_settag from app.pe import pe_settag
# ---------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------
def comp_nom_semestre_dans_parcours(sem): def comp_nom_semestre_dans_parcours(sem):
@ -946,7 +946,7 @@ class JuryPE(object):
return list(taglist) return list(taglist)
def get_allTagInSyntheseJury(self): def get_allTagInSyntheseJury(self):
"""Extrait tous les tags du dictionnaire syntheseJury trié par ordre alphabétique. [] si aucun tag """ """Extrait tous les tags du dictionnaire syntheseJury trié par ordre alphabétique. [] si aucun tag"""
allTags = set() allTags = set()
for nom in JuryPE.PARCOURS.keys(): for nom in JuryPE.PARCOURS.keys():
allTags = allTags.union(set(self.get_allTagForAggregat(nom))) allTags = allTags.union(set(self.get_allTagForAggregat(nom)))
@ -1149,10 +1149,12 @@ class JuryPE(object):
# ********************************************** # **********************************************
def calcul_anneePromoDUT_d_un_etudiant(self, etudid): def calcul_anneePromoDUT_d_un_etudiant(self, etudid):
"""Calcule et renvoie la date de diplome prévue pour un étudiant fourni avec son etudid """Calcule et renvoie la date de diplome prévue pour un étudiant fourni
en fonction de sesSemestres de scolarisation""" avec son etudid en fonction de sesSemestres de scolarisation
et -1 s'il n'y a pas de semestre.
"""
sesSemestres = self.get_semestresDUT_d_un_etudiant(etudid) sesSemestres = self.get_semestresDUT_d_un_etudiant(etudid)
return max([get_annee_diplome_semestre(sem) for sem in sesSemestres]) return max([get_annee_diplome_semestre(sem) for sem in sesSemestres] or -1)
# ********************************************* # *********************************************
# Fonctions d'affichage pour debug # Fonctions d'affichage pour debug

View File

@ -40,7 +40,7 @@ from app import log
from app.scodoc import sco_codes_parcours from app.scodoc import sco_codes_parcours
from app.scodoc import sco_cache from app.scodoc import sco_cache
from app.scodoc import sco_tag_module from app.scodoc import sco_tag_module
from app.scodoc import pe_tagtable from app.pe import pe_tagtable
class SemestreTag(pe_tagtable.TableTag): class SemestreTag(pe_tagtable.TableTag):

View File

@ -36,8 +36,8 @@ Created on Fri Sep 9 09:15:05 2016
@author: barasc @author: barasc
""" """
from app.scodoc.pe_tools import pe_print, PE_DEBUG from app.pe.pe_tools import pe_print, PE_DEBUG
from app.scodoc import pe_tagtable from app.pe import pe_tagtable
class SetTag(pe_tagtable.TableTag): class SetTag(pe_tagtable.TableTag):

View File

@ -42,10 +42,10 @@ from app.scodoc import sco_formsemestre
from app.scodoc import html_sco_header from app.scodoc import html_sco_header
from app.scodoc import sco_preferences from app.scodoc import sco_preferences
from app.scodoc import pe_tools from app.pe import pe_tools
from app.scodoc.pe_tools import PE_LATEX_ENCODING from app.pe.pe_tools import PE_LATEX_ENCODING
from app.scodoc import pe_jurype from app.pe import pe_jurype
from app.scodoc import pe_avislatex from app.pe import pe_avislatex
def _pe_view_sem_recap_form(formsemestre_id): def _pe_view_sem_recap_form(formsemestre_id):

View File

@ -105,7 +105,7 @@ def _build_menu_stats(formsemestre_id):
"title": "Documents Avis Poursuite Etudes", "title": "Documents Avis Poursuite Etudes",
"endpoint": "notes.pe_view_sem_recap", "endpoint": "notes.pe_view_sem_recap",
"args": {"formsemestre_id": formsemestre_id}, "args": {"formsemestre_id": formsemestre_id},
"enabled": True, "enabled": current_app.config["TESTING"] or current_app.config["DEBUG"],
}, },
{ {
"title": 'Table "débouchés"', "title": 'Table "débouchés"',

View File

@ -73,12 +73,9 @@ from app.scodoc.sco_exceptions import (
AccessDenied, AccessDenied,
) )
from app.scodoc import html_sco_header from app.scodoc import html_sco_header
from app.scodoc import htmlutils from app.pe import pe_view
from app.scodoc import notes_table
from app.scodoc import pe_view
from app.scodoc import sco_abs from app.scodoc import sco_abs
from app.scodoc import sco_apogee_compare from app.scodoc import sco_apogee_compare
from app.scodoc import sco_apogee_csv
from app.scodoc import sco_archives from app.scodoc import sco_archives
from app.scodoc import sco_bulletins from app.scodoc import sco_bulletins
from app.scodoc import sco_bulletins_pdf from app.scodoc import sco_bulletins_pdf

View File

@ -1,7 +1,7 @@
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.0.38" SCOVERSION = "9.0.39"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"