From 111f77d66724eb1cdfb43ebe7ee3e8cfb8049bf1 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 9 Jul 2021 13:45:10 +0200 Subject: [PATCH] python-modernize views --- app/views/entreprises.py | 0 app/views/essais.py | 1 + app/views/notes.py | 9 +++++---- app/views/scodoc.py | 8 ++++---- app/views/scolar.py | 10 +++++----- app/views/users.py | 22 ++++++++++------------ 6 files changed, 25 insertions(+), 25 deletions(-) mode change 100755 => 100644 app/views/entreprises.py diff --git a/app/views/entreprises.py b/app/views/entreprises.py old mode 100755 new mode 100644 diff --git a/app/views/essais.py b/app/views/essais.py index 1a49cadc..8e056df0 100644 --- a/app/views/essais.py +++ b/app/views/essais.py @@ -5,6 +5,7 @@ Module Essais: divers essais pour la migration vers Flask Emmanuel Viennet, 2021 """ +from __future__ import absolute_import from flask import g from flask import current_app diff --git a/app/views/notes.py b/app/views/notes.py index f5e95d35..5d1ccc60 100644 --- a/app/views/notes.py +++ b/app/views/notes.py @@ -30,6 +30,7 @@ Module notes: issu de ScoDoc7 / ZNotes.py Emmanuel Viennet, 2021 """ +from __future__ import absolute_import import sys import time import datetime @@ -722,7 +723,7 @@ def edit_enseignants_form(context, REQUEST, moduleimpl_id): login2display = {} # user_name : forme pour affichage = "NOM Prenom (login)" for u in userlist: login2display[u["user_name"]] = u["nomplogin"] - allowed_user_names = login2display.values() + allowed_user_names = list(login2display.values()) H = [ "