[table view] fix bug introduced in 7938:80c6e2155c3d leading to not translated table headers stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 14 Oct 2011 14:41:44 +0200
branchstable
changeset 7959 32349eb5d89d
parent 7957 5da7ede69063
child 7960 981d2a6d95be
[table view] fix bug introduced in 7938:80c6e2155c3d leading to not translated table headers
view.py
--- a/view.py	Fri Oct 14 13:50:46 2011 +0200
+++ b/view.py	Fri Oct 14 14:41:44 2011 +0200
@@ -469,7 +469,7 @@
             translate = lambda val: val
         # XXX [0] because of missing Union support
         rql_syntax_tree = self.cw_rset.syntax_tree()
-        rqlstdescr = rql_syntax_tree.get_description(mainindex)[0]
+        rqlstdescr = rql_syntax_tree.get_description(mainindex, translate)[0]
         labels = []
         for colidx, label in enumerate(rqlstdescr):
             labels.append(self.column_label(colidx, label, translate))
@@ -496,7 +496,7 @@
             etypes = self.cw_rset.column_types(colidx)
             if translate_func is not None:
                 etypes = map(translate_func, etypes)
-            label = ','.join(etypes)
+            label = u','.join(etypes)
         return label