Commit 036c66eb authored by Jérome Perrin's avatar Jérome Perrin

knowledge_pad: py3

parent 40e50c1a
......@@ -247,7 +247,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: (request.get(\'rss_link\') or \'\').encode(\'utf-8\')</string> </value>
<value> <string>python: (request.get(\'rss_link\') or \'\')</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -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