Commit b81426f7 authored by Jérome Perrin's avatar Jérome Perrin

knowledge_pad: py3

parent 61f10c8d
......@@ -12,7 +12,7 @@ gadget_title_dom_id = '%s_gadget_title' %box_dom_id
# return some JavaScript which will update respective page
gadget_title = request.get('rss_gadget_title', box.getSpecialiseValue().getTitle())
gadget_title = unicode(gadget_title).encode('utf-8')[:40]
gadget_title = gadget_title[:40]
javascript = '$("#%s").html("%s");' %(gadget_title_dom_id, gadget_title)
request.RESPONSE.setHeader("Content-Type", "application/json;; charset=utf-8")
......
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