Lien sur message erreur saisie incorrecte eval

This commit is contained in:
Emmanuel Viennet 2022-01-27 10:22:42 +01:00
parent 715d7aa9ee
commit 70a00cd1b5
3 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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)

View File

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