diff -r 009e2856afcb -r 5fad58e603f4 view.py --- a/view.py Tue Jun 30 15:22:29 2009 +0200 +++ b/view.py Tue Jun 30 15:25:46 2009 +0200 @@ -371,9 +371,9 @@ def columns_labels(self, mainindex=0, tr=True): if tr: - translate = display_name + translate = lambda val, req=self.req: display_name(req, val) else: - translate = lambda req, val: val + translate = lambda val: val # XXX [0] because of missing Union support rqlstdescr = self.rset.syntax_tree().get_description(mainindex, translate)[0] @@ -381,7 +381,7 @@ for colindex, label in enumerate(rqlstdescr): # compute column header if label == 'Any': # find a better label - label = ','.join(translate(self.req, et) + label = ','.join(translate(et) for et in self.rset.column_types(colindex)) labels.append(label) return labels