view.py
changeset 8013 7b2b8a7fb96d
parent 7990 a673d1d9a738
parent 8011 23552e79316f
child 8174 b3e87e6865ef
equal deleted inserted replaced
8012:2080e476ece7 8013:7b2b8a7fb96d
   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):