Projet

Général

Profil

0001-utils-adjust-condition-on-ComplexType-elements-43917.patch

Benjamin Dauvergne, 11 juin 2020 15:42

Télécharger (1,32 ko)

Voir les différences:

Subject: [PATCH] utils: adjust condition on ComplexType elements (#43917)

We used the wrong property to check for complex-type with are
simple-type extensions, as stated by the xmlschema author
(https://github.com/sissaschool/xmlschema/issues/195).
 passerelle/utils/xml.py | 2 +-
 tox.ini                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
passerelle/utils/xml.py
314 314
                schema['properties']['$'] = base_schema
315 315
            return schema
316 316
        else:
317
            if xmltype.has_mixed_content() or not xmltype.is_element_only():
317
            if not xmltype.is_empty() and not xmltype.is_element_only():
318 318
                raise NotImplementedError(xmltype)
319 319

  
320 320
            schema = OrderedDict({'type': 'object'})
tox.ini
37 37
  vobject
38 38
  django-ratelimit
39 39
  pyquery
40
  xmlschema<1.1
40
  py2: xmlschema<1.1
41 41
  zeep<3.3
42 42
commands =
43 43
  ./get_wcs.sh
44
-