# HG changeset patch # User Rémi Cardona # Date 1442925753 -7200 # Node ID 3fb9111d521f8f4033022a2113576564fcab0e23 # Parent bb91f581c389eb79b9bb8b038221253d8240b2aa [py3k] unicode → six.text_type diff -r bb91f581c389 -r 3fb9111d521f web/views/navigation.py --- a/web/views/navigation.py Tue Sep 22 10:24:47 2015 +0200 +++ b/web/views/navigation.py Tue Sep 22 14:42:33 2015 +0200 @@ -50,6 +50,8 @@ from datetime import datetime +from six import text_type + from rql.nodes import VariableRef, Constant from logilab.mtconverter import xml_escape @@ -192,10 +194,10 @@ return entity.printable_value(attrname, format='text/plain') elif col is None: # smart links disabled. def index_display(row): - return unicode(row) + return text_type(row) elif self._cw.vreg.schema.eschema(rset.description[0][col]).final: def index_display(row): - return unicode(rset[row][col]) + return text_type(rset[row][col]) else: def index_display(row): return rset.get_entity(row, col).view('text')