From 11e33c6c1638c49034003eb9832345790739182c Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Mon, 28 Jan 2008 10:20:47 +0000 Subject: [PATCH] Convert url value in unicode if needed git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18881 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/ListBox.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py index 41e6f57d2b..9189fa43c5 100644 --- a/product/ERP5Form/ListBox.py +++ b/product/ERP5Form/ListBox.py @@ -2097,6 +2097,8 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine): else: # JPS-XXX - I think we should not display a URL for objects # which do not have the View permission + if type(url) == str: + url = unicode(url.decode('utf-8')) html = u'<a href="%s">%s</a>' % (url, processed_value) html_list.append((html, original_value, error, editable_field)) -- 2.30.9