Projet

Général

Profil

0002-workflow-allow-xml-empty-content-to-be-imported-as-b.patch

Nicolas Roche, 29 août 2019 16:43

Télécharger (1,07 ko)

Voir les différences:

Subject: [PATCH 2/4] workflow: allow xml empty content to be imported as
 base64 (#31823)

 wcs/wf/export_to_model.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
wcs/wf/export_to_model.py
490 490
        base_filename = elem.find('base_filename').text
491 491
        content_type = elem.find('content_type').text
492 492
        if elem.find('b64_content') is not None:
493
            content = base64.decodestring(elem.find('b64_content').text)
493
            if elem.find('b64_content').text is not None:
494
                content = base64.decodestring(elem.find('b64_content').text)
495
            else:
496
                content = None
494 497
        if elem.find('content') is not None:
495 498
            content = elem.find('content').text
496 499

  
497
-