From 70a00cd1b54b21421ae0d1f7988d9916cc5a2596 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 27 Jan 2022 10:22:42 +0100 Subject: [PATCH] Lien sur message erreur saisie incorrecte eval --- app/scodoc/sco_evaluation_db.py | 3 ++- app/scodoc/sco_exceptions.py | 2 +- sco_version.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/scodoc/sco_evaluation_db.py b/app/scodoc/sco_evaluation_db.py index 17d47915..6586ddd0 100644 --- a/app/scodoc/sco_evaluation_db.py +++ b/app/scodoc/sco_evaluation_db.py @@ -185,7 +185,8 @@ def _check_evaluation_args(args): if (jour > date_fin) or (jour < date_debut): raise ScoValueError( "La date de l'évaluation (%s/%s/%s) n'est pas dans le semestre !" - % (d, m, y) + % (d, m, y), + dest_url="javascript:history.back();", ) heure_debut = args.get("heure_debut", None) args["heure_debut"] = heure_debut diff --git a/app/scodoc/sco_exceptions.py b/app/scodoc/sco_exceptions.py index 5f64f57b..112658e6 100644 --- a/app/scodoc/sco_exceptions.py +++ b/app/scodoc/sco_exceptions.py @@ -40,7 +40,7 @@ class InvalidNoteValue(ScoException): pass -# Exception qui stoque dest_url, utilisee dans Zope standard_error_message +# Exception qui stoque dest_url class ScoValueError(ScoException): def __init__(self, msg, dest_url=None): super().__init__(msg) diff --git a/sco_version.py b/sco_version.py index 00415b08..c3e72520 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.1.35" +SCOVERSION = "9.1.36" SCONAME = "ScoDoc"