changeset 10717 | 46f934bebd85 |
parent 10609 | e2d8e81bfe68 |
--- a/web/views/pyviews.py Fri Sep 18 18:02:20 2015 +0200 +++ b/web/views/pyviews.py Fri Sep 18 18:03:19 2015 +0200 @@ -19,6 +19,7 @@ """ __docformat__ = "restructuredtext en" +from six import text_type from six.moves import range from cubicweb.view import View @@ -40,7 +41,7 @@ w(self.empty_cell_content) def render_cell(self, w, rownum): - w(unicode(self.data[rownum][self.colid])) + w(text_type(self.data[rownum][self.colid])) class PyValTableView(tableview.TableMixIn, View):