[sources management] fix crash mapping tab because chain() is not indexable. Closes #2124077
--- 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):