equal
deleted
inserted
replaced
447 :type tr: boolean |
447 :type tr: boolean |
448 """ |
448 """ |
449 if tr: |
449 if tr: |
450 translate = partial(display_name, self._cw) |
450 translate = partial(display_name, self._cw) |
451 else: |
451 else: |
452 translate = lambda val: val |
452 translate = lambda val, *args,**kwargs: val |
453 # XXX [0] because of missing Union support |
453 # XXX [0] because of missing Union support |
454 rql_syntax_tree = self.cw_rset.syntax_tree() |
454 rql_syntax_tree = self.cw_rset.syntax_tree() |
455 rqlstdescr = rql_syntax_tree.get_description(mainindex, translate)[0] |
455 rqlstdescr = rql_syntax_tree.get_description(mainindex, translate)[0] |
456 labels = [] |
456 labels = [] |
457 for colidx, label in enumerate(rqlstdescr): |
457 for colidx, label in enumerate(rqlstdescr): |