forked from ScoDoc/ScoDoc
Fix some typos
This commit is contained in:
parent
41944d9d65
commit
80c03f022b
@ -27,7 +27,6 @@ from app.models import (
|
|||||||
FormSemestreInscription,
|
FormSemestreInscription,
|
||||||
FormSemestre,
|
FormSemestre,
|
||||||
Identite,
|
Identite,
|
||||||
ScoDocSiteConfig,
|
|
||||||
)
|
)
|
||||||
from app.scodoc import sco_bulletins
|
from app.scodoc import sco_bulletins
|
||||||
from app.scodoc import sco_groups
|
from app.scodoc import sco_groups
|
||||||
|
@ -512,7 +512,7 @@ class BulletinBUT:
|
|||||||
d["nbabs"], d["nbabsjust"] = self.res.formsemestre.get_abs_count(etud.id)
|
d["nbabs"], d["nbabsjust"] = self.res.formsemestre.get_abs_count(etud.id)
|
||||||
|
|
||||||
# --- Decision Jury
|
# --- Decision Jury
|
||||||
infos, dpv = sco_bulletins.etud_descr_situation_semestre(
|
infos, _ = sco_bulletins.etud_descr_situation_semestre(
|
||||||
etud.id,
|
etud.id,
|
||||||
self.res.formsemestre,
|
self.res.formsemestre,
|
||||||
format="html",
|
format="html",
|
||||||
|
@ -67,7 +67,6 @@ from flask import flash, g, url_for
|
|||||||
|
|
||||||
from app import db
|
from app import db
|
||||||
from app import log
|
from app import log
|
||||||
from app.but import cursus_but
|
|
||||||
from app.but.cursus_but import EtudCursusBUT
|
from app.but.cursus_but import EtudCursusBUT
|
||||||
from app.but.rcue import RegroupementCoherentUE
|
from app.but.rcue import RegroupementCoherentUE
|
||||||
from app.comp.res_but import ResultatsSemestreBUT
|
from app.comp.res_but import ResultatsSemestreBUT
|
||||||
|
@ -182,8 +182,8 @@ class Module(db.Model):
|
|||||||
Les coefs nuls (zéro) ne sont pas stockés: la relation est supprimée.
|
Les coefs nuls (zéro) ne sont pas stockés: la relation est supprimée.
|
||||||
"""
|
"""
|
||||||
if self.formation.has_locked_sems(self.ue.semestre_idx):
|
if self.formation.has_locked_sems(self.ue.semestre_idx):
|
||||||
current_app.logguer.info(
|
current_app.logger.info(
|
||||||
f"set_ue_coef_dict: locked formation, ignoring request"
|
"set_ue_coef_dict: locked formation, ignoring request"
|
||||||
)
|
)
|
||||||
raise ScoValueError("Formation verrouillée")
|
raise ScoValueError("Formation verrouillée")
|
||||||
changed = False
|
changed = False
|
||||||
@ -213,8 +213,8 @@ class Module(db.Model):
|
|||||||
def update_ue_coef_dict(self, ue_coef_dict: dict):
|
def update_ue_coef_dict(self, ue_coef_dict: dict):
|
||||||
"""update coefs vers UE (ajoute aux existants)"""
|
"""update coefs vers UE (ajoute aux existants)"""
|
||||||
if self.formation.has_locked_sems(self.ue.semestre_idx):
|
if self.formation.has_locked_sems(self.ue.semestre_idx):
|
||||||
current_app.logguer.info(
|
current_app.logger.info(
|
||||||
f"update_ue_coef_dict: locked formation, ignoring request"
|
"update_ue_coef_dict: locked formation, ignoring request"
|
||||||
)
|
)
|
||||||
raise ScoValueError("Formation verrouillée")
|
raise ScoValueError("Formation verrouillée")
|
||||||
current = self.get_ue_coef_dict()
|
current = self.get_ue_coef_dict()
|
||||||
@ -232,7 +232,7 @@ class Module(db.Model):
|
|||||||
def delete_ue_coef(self, ue):
|
def delete_ue_coef(self, ue):
|
||||||
"""delete coef"""
|
"""delete coef"""
|
||||||
if self.formation.has_locked_sems(self.ue.semestre_idx):
|
if self.formation.has_locked_sems(self.ue.semestre_idx):
|
||||||
current_app.logguer.info(
|
current_app.logger.info(
|
||||||
"delete_ue_coef: locked formation, ignoring request"
|
"delete_ue_coef: locked formation, ignoring request"
|
||||||
)
|
)
|
||||||
raise ScoValueError("Formation verrouillée")
|
raise ScoValueError("Formation verrouillée")
|
||||||
|
@ -46,27 +46,23 @@ CSSSTYLES = html_sco_header.BOOTSTRAP_MULTISELECT_CSS
|
|||||||
# --- UTILS ---
|
# --- UTILS ---
|
||||||
|
|
||||||
|
|
||||||
class HTMLElement:
|
|
||||||
""""""
|
|
||||||
|
|
||||||
|
|
||||||
class HTMLElement:
|
class HTMLElement:
|
||||||
"""Représentation d'un HTMLElement version Python"""
|
"""Représentation d'un HTMLElement version Python"""
|
||||||
|
|
||||||
def __init__(self, tag: str, *attr, **kattr) -> None:
|
def __init__(self, tag: str, *attr, **kattr) -> None:
|
||||||
self.tag: str = tag
|
self.tag: str = tag
|
||||||
self.children: list[HTMLElement] = []
|
self.children: list["HTMLElement"] = []
|
||||||
self.self_close: bool = kattr.get("self_close", False)
|
self.self_close: bool = kattr.get("self_close", False)
|
||||||
self.text_content: str = kattr.get("text_content", "")
|
self.text_content: str = kattr.get("text_content", "")
|
||||||
self.key_attributes: dict[str, any] = kattr
|
self.key_attributes: dict[str, any] = kattr
|
||||||
self.attributes: list[str] = list(attr)
|
self.attributes: list[str] = list(attr)
|
||||||
|
|
||||||
def add(self, *child: HTMLElement) -> None:
|
def add(self, *child: "HTMLElement") -> None:
|
||||||
"""add child element to self"""
|
"""add child element to self"""
|
||||||
for kid in child:
|
for kid in child:
|
||||||
self.children.append(kid)
|
self.children.append(kid)
|
||||||
|
|
||||||
def remove(self, child: HTMLElement) -> None:
|
def remove(self, child: "HTMLElement") -> None:
|
||||||
"""Remove child element from self"""
|
"""Remove child element from self"""
|
||||||
if child in self.children:
|
if child in self.children:
|
||||||
self.children.remove(child)
|
self.children.remove(child)
|
||||||
|
Loading…
Reference in New Issue
Block a user