From 407b0fb78f940143cb37c731a96ac25220cdcabe Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Wed, 29 Apr 2020 18:41:18 +0200 Subject: [PATCH] [FIX]Yaltik DSL : fix for unicode child (not only str) --- yaltik_dsl/__manifest__.py | 2 +- yaltik_dsl/xml_base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yaltik_dsl/__manifest__.py b/yaltik_dsl/__manifest__.py index d8879f2..fa8058b 100644 --- a/yaltik_dsl/__manifest__.py +++ b/yaltik_dsl/__manifest__.py @@ -19,7 +19,7 @@ 'name': 'Yaltik Odoo DSL base module and fns', 'summary': 'Yaltik Odoo Domain Specific Language base module and functions', 'description': """ Yaltik Odoo Domain Specific Language base module and functions """, - 'version': '10.0.0.2.3', + 'version': '10.0.0.2.4', 'category': 'Yaltik', 'author': 'Fabien Bourgeois', 'license': 'AGPL-3', diff --git a/yaltik_dsl/xml_base.py b/yaltik_dsl/xml_base.py index faaa295..a38fbb8 100644 --- a/yaltik_dsl/xml_base.py +++ b/yaltik_dsl/xml_base.py @@ -35,7 +35,7 @@ def xmlchild(parent, children): """ Handling of children (ie non root) XML Nodes with/o text and subchildren (recursive) """ for child in children: - if isinstance(child, str): + if isinstance(child, (str, unicode)): parent.text = child else: attrs = {unicode(k): unicode(v) for [k, v] in child['attrs'].items()}