web/views/workflow.py
changeset 6473 2b09a410ff8e
parent 6456 150246e77cda
child 6690 7d68948015ba
--- 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 #############################################################