cubicweb/web/views/workflow.py
changeset 11851 002007272a76
parent 11767 432f87a63057
child 12210 3fa6c9ef2f51
equal deleted inserted replaced
11850:87443f279b0f 11851:002007272a76
   150             headers = (_('from_state'), _('to_state'), _('comment'), _('date'),
   150             headers = (_('from_state'), _('to_state'), _('comment'), _('date'),
   151                        _('CWUser'))
   151                        _('CWUser'))
   152         else:
   152         else:
   153             sel += ',WF'
   153             sel += ',WF'
   154             headers = (_('from_state'), _('to_state'), _('comment'), _('date'))
   154             headers = (_('from_state'), _('to_state'), _('comment'), _('date'))
   155         rql = '%s %s, X eid %%(x)s' % (sel, rql)
   155         sel += ',FSN,TSN,CF'
       
   156         rql = '%s %s, FS name FSN, TS name TSN, WF comment_format CF, X eid %%(x)s' % (sel, rql)
   156         try:
   157         try:
   157             rset = self._cw.execute(rql, {'x': eid})
   158             rset = self._cw.execute(rql, {'x': eid})
   158         except Unauthorized:
   159         except Unauthorized:
   159             return
   160             return
   160         if rset:
   161         if rset: