web/views/workflow.py
changeset 6456 150246e77cda
parent 6366 1806148d6ce8
child 6473 2b09a410ff8e
equal deleted inserted replaced
6455:3282742dd4c6 6456:150246e77cda
   159         if rset:
   159         if rset:
   160             self.wview('table', rset, title=_(self.title), displayactions=False,
   160             self.wview('table', rset, title=_(self.title), displayactions=False,
   161                        displaycols=displaycols, headers=headers)
   161                        displaycols=displaycols, headers=headers)
   162 
   162 
   163 
   163 
   164 class WFHistoryVComponent(component.CtxComponent):
   164 class WFHistoryVComponent(component.EntityCtxComponent):
   165     """display the workflow history for entities supporting it"""
   165     """display the workflow history for entities supporting it"""
   166     __regid__ = 'wfhistory'
   166     __regid__ = 'wfhistory'
   167     __select__ = component.EntityVComponent.__select__ & WFHistoryView.__select__
   167     __select__ = component.EntityCtxComponent.__select__ & WFHistoryView.__select__
   168     context = 'navcontentbottom'
   168     context = 'navcontentbottom'
   169     title = _('Workflow history')
   169     title = _('Workflow history')
   170 
   170 
   171     def render_body(self, w):
   171     def render_body(self, w):
   172         if hasattr(self, 'cell_call'):
   172         if hasattr(self, 'cell_call'):
   173             warn('[3.10] %s should now implement render_body instead of cell_call',
   173             warn('[3.10] %s should now implement render_body instead of cell_call'
   174                  DeprecationWarning, self.__class__)
   174                  % self.__class__, DeprecationWarning)
   175             self.w = w
   175             self.w = w
   176             self.cell_call(self.entity.cw_row, self.entity.cw_col)
   176             self.cell_call(self.entity.cw_row, self.entity.cw_col)
   177         else:
   177         else:
   178             self.entity.view('wfhistory', w=w)
   178             self.entity.view('wfhistory', w=w)
   179 
   179