Projet

Général

Profil

0006-toulouse_axel-zeep-upgrade-for-encoding-in-logs-3854.patch

Lauréline Guérin, 14 janvier 2020 11:56

Télécharger (1,56 ko)

Voir les différences:

Subject: [PATCH 6/6] toulouse_axel: zeep upgrade for encoding in logs (#38543)

cf https://github.com/mvantellingen/python-zeep/commit/7277be32d5921b0b5f1c250fe607d74aaee2125f
Here toulouse axel sends headers like:
<?xml version="1.0" encoding="ISO-8859-1"?>
 passerelle/contrib/toulouse_axel/models.py | 2 +-
 setup.py                                   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
passerelle/contrib/toulouse_axel/models.py
217 217
            force_text(serialized_request),
218 218
            '')  # FIXME: What is the user parameter for ?
219 219

  
220
        xml_result = ET.fromstring(result)
220
        xml_result = ET.fromstring(result.encode('utf-8'))
221 221
        indent(xml_result)
222 222
        pretty_result = ET.tostring(xml_result)
223 223
        if xml_result.find('RESULTAT/STATUS').text != 'OK':
setup.py
104 104
            'python-dateutil',
105 105
            'Pillow',
106 106
            'jsonschema < 3.1',
107
            'zeep < 3.0',
107
            'zeep >= 3.0.2',
108 108
            'pycrypto',
109 109
            'unidecode',
110 110
            'paramiko',
111
-