Commit 3bf826ba authored by Jérome Perrin's avatar Jérome Perrin

knowledge_pad: py3

parent b31f5416
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -12,7 +12,7 @@ gadget_title_dom_id = '%s_gadget_title' %box_dom_id ...@@ -12,7 +12,7 @@ gadget_title_dom_id = '%s_gadget_title' %box_dom_id
# return some JavaScript which will update respective page # return some JavaScript which will update respective page
gadget_title = request.get('rss_gadget_title', box.getSpecialiseValue().getTitle()) 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) javascript = '$("#%s").html("%s");' %(gadget_title_dom_id, gadget_title)
request.RESPONSE.setHeader("Content-Type", "application/json;; charset=utf-8") 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