web/views/editforms.py
changeset 10609 e2d8e81bfe68
parent 9492 c7fc56eecd1a
child 10666 7f6b5f023884
--- a/web/views/editforms.py	Tue Sep 15 15:07:13 2015 +0200
+++ b/web/views/editforms.py	Tue Sep 15 16:56:57 2015 +0200
@@ -24,6 +24,8 @@
 
 from copy import copy
 
+from six.moves import range
+
 from logilab.mtconverter import xml_escape
 from logilab.common.decorators import cached
 from logilab.common.registry import yes
@@ -230,7 +232,7 @@
     def __init__(self, req, rset, **kwargs):
         kwargs.setdefault('__redirectrql', rset.printable_rql())
         super(TableEditForm, self).__init__(req, rset=rset, **kwargs)
-        for row in xrange(len(self.cw_rset)):
+        for row in range(len(self.cw_rset)):
             form = self._cw.vreg['forms'].select('edition', self._cw,
                                                  rset=self.cw_rset, row=row,
                                                  formtype='muledit',