[column labels] full display_name prototype compat stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 24 Oct 2011 13:13:45 +0200
branchstable
changeset 8011 23552e79316f
parent 8010 75b6005eb590
child 8013 7b2b8a7fb96d
child 8017 1df3b5e9d010
[column labels] full display_name prototype compat
view.py
--- a/view.py	Mon Oct 24 13:09:05 2011 +0200
+++ b/view.py	Mon Oct 24 13:13:45 2011 +0200
@@ -466,7 +466,7 @@
         if tr:
             translate = partial(display_name, self._cw)
         else:
-            translate = lambda val: val
+            translate = lambda val, *args,**kwargs: val
         # XXX [0] because of missing Union support
         rql_syntax_tree = self.cw_rset.syntax_tree()
         rqlstdescr = rql_syntax_tree.get_description(mainindex, translate)[0]