1
0
forked from ScoDoc/ScoDoc

autorise chiffres dans user_name

This commit is contained in:
Emmanuel Viennet 2021-09-28 16:10:27 +02:00
parent 36c22a7ca7
commit 5dfdf4265e
3 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ def do_evaluation_listenotes():
Affichage des notes d'une évaluation Affichage des notes d'une évaluation
args: evaluation_id ou moduleimpl_id args: evaluation_id ou moduleimpl_id
(si moduleimpl_id, affiche toutes les évaluatons du module) (si moduleimpl_id, affiche toutes les évaluations du module)
""" """
mode = None mode = None
vals = scu.get_request_args() vals = scu.get_request_args()
@ -69,7 +69,7 @@ def do_evaluation_listenotes():
evaluation_id = int(vals["evaluation_id"]) evaluation_id = int(vals["evaluation_id"])
mode = "eval" mode = "eval"
evals = sco_evaluations.do_evaluation_list({"evaluation_id": evaluation_id}) evals = sco_evaluations.do_evaluation_list({"evaluation_id": evaluation_id})
if "moduleimpl_id" in vals: if "moduleimpl_id" in vals and vals["moduleimpl_id"]:
moduleimpl_id = int(vals["moduleimpl_id"]) moduleimpl_id = int(vals["moduleimpl_id"])
mode = "module" mode = "module"
evals = sco_evaluations.do_evaluation_list({"moduleimpl_id": moduleimpl_id}) evals = sco_evaluations.do_evaluation_list({"moduleimpl_id": moduleimpl_id})

View File

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

View File

@ -30,7 +30,7 @@ def import_scodoc7_user_db(scodoc7_db="dbname=SCOUSERS"):
# ensure that user_name will match VALID_LOGIN_EXP # ensure that user_name will match VALID_LOGIN_EXP
user_name = scu.purge_chars( user_name = scu.purge_chars(
user_name, user_name,
allowed_chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@\\-_.", allowed_chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@\\-_.",
) )
if user_name != u7["user_name"]: if user_name != u7["user_name"]:
msg = f"""Changing login '{u7["user_name"]}' to '{user_name}'""" msg = f"""Changing login '{u7["user_name"]}' to '{user_name}'"""