web/views/autoform.py
changeset 10609 e2d8e81bfe68
parent 10593 03ce3d24db87
child 10651 9ca33768473c
--- a/web/views/autoform.py	Tue Sep 15 15:07:13 2015 +0200
+++ b/web/views/autoform.py	Tue Sep 15 16:56:57 2015 +0200
@@ -123,6 +123,8 @@
 
 from warnings import warn
 
+from six.moves import range
+
 from logilab.mtconverter import xml_escape
 from logilab.common.decorators import iclassmethod, cached
 from logilab.common.deprecation import deprecated
@@ -610,7 +612,7 @@
                     toggleable_rel_link_func = toggleable_relation_link
                 else:
                     toggleable_rel_link_func = lambda x, y, z: u''
-                for row in xrange(rset.rowcount):
+                for row in range(rset.rowcount):
                     nodeid = relation_id(entity.eid, rschema, role,
                                          rset[row][0])
                     if nodeid in pending_deletes: