[PATCH 12 of 16 eac] [py3] Pass a text value to _cw_mtc_transform()

Denis Laxalde denis.laxalde at logilab.fr
Tue Oct 1 12:36:38 CEST 2019


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1569921580 -7200
#      Tue Oct 01 11:19:40 2019 +0200
# Node ID f2d8430ab184e725fed5483e10ce704713f93f4d
# Parent  149267ba6a570828b458c519989b0ba172ac53a6
# Available At http://hg.logilab.org/review/cubes/eac
#              hg pull http://hg.logilab.org/review/cubes/eac -r f2d8430ab184
[py3] Pass a text value to _cw_mtc_transform()

diff --git a/cubicweb_eac/views.py b/cubicweb_eac/views.py
index b389be3..82aec17 100644
--- a/cubicweb_eac/views.py
+++ b/cubicweb_eac/views.py
@@ -208,7 +208,7 @@ class XMLWrapComponent(component.EntityC
     def render_body(self, w):
         sourcemt, targetmt = 'text/xml', 'text/html'
         data = self.entity.xml_wrap
-        w(self.entity._cw_mtc_transform(data.getvalue(),
+        w(self.entity._cw_mtc_transform(data.getvalue().decode('utf-8'),
                                         sourcemt, targetmt, 'utf-8'))
 
 



More information about the saem-devel mailing list