[sources management] fix crash mapping tab because chain() is not indexable. Closes #2124077 stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 14 Dec 2011 12:13:28 +0100
branchstable
changeset 8136 273d8a03700c
parent 8135 12c7b6065def
child 8137 5687b3d09d3a
child 8140 9cb78cf41413
[sources management] fix crash mapping tab because chain() is not indexable. Closes #2124077
web/views/cwsources.py
--- a/web/views/cwsources.py	Mon Dec 19 19:01:15 2011 +0100
+++ b/web/views/cwsources.py	Wed Dec 14 12:13:28 2011 +0100
@@ -23,7 +23,7 @@
 _ = unicode
 
 import logging
-from itertools import repeat, chain
+from itertools import repeat
 from logilab.mtconverter import xml_escape
 from logilab.common.decorators import cachedproperty
 
@@ -136,7 +136,7 @@
             errors = zip(repeat(_('error')), checker.errors)
             warnings = zip(repeat(_('warning')), checker.warnings)
             infos = zip(repeat(_('warning')), checker.infos)
-            self.wview('pyvaltable', pyvalue=chain(errors, warnings, infos))
+            self.wview('pyvaltable', pyvalue=errors + warnings + infos)
 
 
 class MappingChecker(object):