[wf history] avoid title duplication
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 13 Oct 2010 15:59:05 +0200
changeset 6473 2b09a410ff8e
parent 6472 6e058f937126
child 6474 745b20ac1a68
[wf history] avoid title duplication
web/views/workflow.py
--- a/web/views/workflow.py	Wed Oct 13 13:03:48 2010 +0200
+++ b/web/views/workflow.py	Wed Oct 13 15:59:05 2010 +0200
@@ -134,7 +134,7 @@
 
     title = _('Workflow history')
 
-    def cell_call(self, row, col, view=None):
+    def cell_call(self, row, col, view=None, title=title):
         _ = self._cw._
         eid = self.cw_rset[row][col]
         sel = 'Any FS,TS,WF,D'
@@ -157,7 +157,9 @@
         except Unauthorized:
             return
         if rset:
-            self.wview('table', rset, title=_(self.title), displayactions=False,
+            if title:
+                title = _(title)
+            self.wview('table', rset, title=title, displayactions=False,
                        displaycols=displaycols, headers=headers)
 
 
@@ -175,7 +177,7 @@
             self.w = w
             self.cell_call(self.entity.cw_row, self.entity.cw_col)
         else:
-            self.entity.view('wfhistory', w=w)
+            self.entity.view('wfhistory', w=w, title=None)
 
 
 # workflow actions #############################################################