[Erp5-report] r29537 - /erp5/trunk/products/ERP5Form/ListBox.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Oct 9 16:33:01 CEST 2009
Author: fabien
Date: Fri Oct 9 16:32:59 2009
New Revision: 29537
URL: http://svn.erp5.org?rev=29537&view=rev
Log:
use encoding variable instead of hardcoded value
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=29537&r1=29536&r2=29537&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py [utf8] Fri Oct 9 16:32:59 2009
@@ -2370,7 +2370,7 @@
# JPS-XXX - I think we should not display a URL for objects
# which do not have the View permission
if type(url) is str:
- url = unicode(url.decode('utf-8'))
+ url = unicode(url, encoding)
html = u'<a href="%s">%s</a>' % (url, processed_value)
html_list.append((html, original_value, error, editable_field, url))
More information about the Erp5-report
mailing list