autorise chiffres dans user_name
This commit is contained in:
parent
36c22a7ca7
commit
5dfdf4265e
@ -61,7 +61,7 @@ def do_evaluation_listenotes():
|
||||
Affichage des notes d'une évaluation
|
||||
|
||||
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
|
||||
vals = scu.get_request_args()
|
||||
@ -69,7 +69,7 @@ def do_evaluation_listenotes():
|
||||
evaluation_id = int(vals["evaluation_id"])
|
||||
mode = "eval"
|
||||
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"])
|
||||
mode = "module"
|
||||
evals = sco_evaluations.do_evaluation_list({"moduleimpl_id": moduleimpl_id})
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- mode: python -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
SCOVERSION = "9.0.43"
|
||||
SCOVERSION = "9.0.44"
|
||||
|
||||
SCONAME = "ScoDoc"
|
||||
|
||||
|
@ -30,7 +30,7 @@ def import_scodoc7_user_db(scodoc7_db="dbname=SCOUSERS"):
|
||||
# ensure that user_name will match VALID_LOGIN_EXP
|
||||
user_name = scu.purge_chars(
|
||||
user_name,
|
||||
allowed_chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@\\-_.",
|
||||
allowed_chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@\\-_.",
|
||||
)
|
||||
if user_name != u7["user_name"]:
|
||||
msg = f"""Changing login '{u7["user_name"]}' to '{user_name}'"""
|
||||
|
Loading…
Reference in New Issue
Block a user