web/views/baseviews.py
changeset 10609 e2d8e81bfe68
parent 10590 7629902e7554
child 10666 7f6b5f023884
--- a/web/views/baseviews.py	Tue Sep 15 15:07:13 2015 +0200
+++ b/web/views/baseviews.py	Tue Sep 15 16:56:57 2015 +0200
@@ -81,6 +81,8 @@
 from datetime import timedelta
 from warnings import warn
 
+from six.moves import range
+
 from rql import nodes
 
 from logilab.mtconverter import TransformError, xml_escape
@@ -232,7 +234,7 @@
         rset = self.cw_rset
         if rset is None:
             raise NotImplementedError(self)
-        for i in xrange(len(rset)):
+        for i in range(len(rset)):
             self.wview(self.__regid__, rset, row=i, **kwargs)
             if len(rset) > 1:
                 self.w(u"\n")
@@ -314,7 +316,7 @@
             self.w(u'<ul>\n')
         else:
             self.w(u'<ul%s class="%s">\n' % (listid, klass or 'section'))
-        for i in xrange(self.cw_rset.rowcount):
+        for i in range(self.cw_rset.rowcount):
             self.cell_call(row=i, col=0, vid=subvid, klass=klass, **kwargs)
         self.w(u'</ul>\n')
         if title:
@@ -427,7 +429,7 @@
     def call(self, subvid=None, **kwargs):
         kwargs['vid'] = subvid
         rset = self.cw_rset
-        for i in xrange(len(rset)):
+        for i in range(len(rset)):
             self.cell_call(i, 0, **kwargs)
             if i < rset.rowcount-1:
                 self.w(self.separator)