doc/book/devweb/views/table.rst
changeset 10829 550c2d27339f
parent 10495 5bd914ebf3ae
equal deleted inserted replaced
10828:0e5a9a03a79d 10829:550c2d27339f
    94 
    94 
    95         column_renderers = {
    95         column_renderers = {
    96             'resource': MainEntityColRenderer(),
    96             'resource': MainEntityColRenderer(),
    97             'workpackage': EntityTableColRenderer(
    97             'workpackage': EntityTableColRenderer(
    98                header='Workpackage',
    98                header='Workpackage',
    99                renderfunc=worpackage_cell,
    99                renderfunc=workpackage_cell,
   100                sortfunc=worpackage_sortvalue,),
   100                sortfunc=workpackage_sortvalue,),
   101             'in_state': EntityTableColRenderer(
   101             'in_state': EntityTableColRenderer(
   102                renderfunc=lambda w,x: w(x.cw_adapt_to('IWorkflowable').printable_state),
   102                renderfunc=lambda w,x: w(x.cw_adapt_to('IWorkflowable').printable_state),
   103                sortfunc=lambda x: x.cw_adapt_to('IWorkflowable').printable_state),
   103                sortfunc=lambda x: x.cw_adapt_to('IWorkflowable').printable_state),
   104          }
   104          }
   105 
   105