1
0
forked from ScoDoc/ScoDoc

Fix pour Python 3.9: cgi.parse_qs -> urllib.parse.parse_qs

This commit is contained in:
Emmanuel Viennet 2021-08-18 23:13:22 +02:00
parent ba8a8e8d19
commit cfd54fbc88

View File

@ -30,12 +30,14 @@
""" """
# Re-ecriture en 2014 (re-organisation de l'interface, modernisation du code) # Re-ecriture en 2014 (re-organisation de l'interface, modernisation du code)
import datetime
import cgi
import six.moves.urllib.request, six.moves.urllib.parse, six.moves.urllib.error
import time
import collections import collections
import datetime
import operator import operator
import six.moves.urllib.request, six.moves.urllib.parse, six.moves.urllib.error
from urllib.parse import parse_qs
import time
from flask import url_for, g from flask import url_for, g
@ -931,7 +933,7 @@ def form_choix_saisie_semaine(context, groups_infos, REQUEST=None):
return "" return ""
# construit l'URL "destination" # construit l'URL "destination"
# (a laquelle on revient apres saisie absences) # (a laquelle on revient apres saisie absences)
query_args = cgi.parse_qs(REQUEST.QUERY_STRING) query_args = parse_qs(REQUEST.QUERY_STRING)
moduleimpl_id = query_args.get("moduleimpl_id", [""])[0] moduleimpl_id = query_args.get("moduleimpl_id", [""])[0]
if "head_message" in query_args: if "head_message" in query_args:
del query_args["head_message"] del query_args["head_message"]