Commit 7ace6857 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

portal_transform result should be str, not unicode.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41876 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 37bd7245
......@@ -14,7 +14,7 @@ class xml_to_text:
def convert(self, data, cache, **kw):
text_list = etree.fromstring(data).itertext()
out = ' '.join([text for text in text_list if text])
out = ' '.join([text for text in text_list if text]).encode('utf-8')
cache.setData(out)
return cache
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment