# HG changeset patch # User Sylvain Thénault # Date 1286978345 -7200 # Node ID 2b09a410ff8e202c312b8dd74833538a7e2205c2 # Parent 6e058f937126240ff04fef21e8ef3c54f0835a4d [wf history] avoid title duplication diff -r 6e058f937126 -r 2b09a410ff8e 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 #############################################################