[Erp5-report] r18881 - /erp5/trunk/products/ERP5Form/ListBox.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 28 11:20:47 CET 2008
Author: nicolas
Date: Mon Jan 28 11:20:47 2008
New Revision: 18881
URL: http://svn.erp5.org?rev=18881&view=rev
Log:
Convert url value in unicode if needed
Modified:
erp5/trunk/products/ERP5Form/ListBox.py
Modified: erp5/trunk/products/ERP5Form/ListBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ListBox.py?rev=18881&r1=18880&r2=18881&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py Mon Jan 28 11:20:47 2008
@@ -2097,6 +2097,8 @@
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))
More information about the Erp5-report
mailing list