diff -r 7fc548d9dd8e -r e2d8e81bfe68 web/views/tableview.py --- a/web/views/tableview.py Tue Sep 15 15:07:13 2015 +0200 +++ b/web/views/tableview.py Tue Sep 15 16:56:57 2015 +0200 @@ -67,6 +67,8 @@ from copy import copy from types import MethodType +from six.moves import range + from logilab.mtconverter import xml_escape from logilab.common.decorators import cachedproperty from logilab.common.deprecation import class_deprecated @@ -225,7 +227,7 @@ def render_table_body(self, w, colrenderers): w(u'
') - for rownum in xrange(self.view.table_size): + for rownum in range(self.view.table_size): self.render_row(w, rownum, colrenderers) w(u'') @@ -646,10 +648,10 @@ # compute displayed columns if self.displaycols is None: if headers is not None: - displaycols = range(len(headers)) + displaycols = list(range(len(headers))) else: rqlst = self.cw_rset.syntax_tree() - displaycols = range(len(rqlst.children[0].selection)) + displaycols = list(range(len(rqlst.children[0].selection))) else: displaycols = self.displaycols # compute table headers @@ -977,9 +979,9 @@ if 'displaycols' in self._cw.form: displaycols = [int(idx) for idx in self._cw.form['displaycols']] elif headers is not None: - displaycols = range(len(headers)) + displaycols = list(range(len(headers))) else: - displaycols = range(len(self.cw_rset.syntax_tree().children[0].selection)) + displaycols = list(range(len(self.cw_rset.syntax_tree().children[0].selection))) return displaycols def _setup_tablesorter(self, divid): @@ -1298,7 +1300,7 @@ self.w(u'