cubicweb/web/views/workflow.py
changeset 12355 c703dc95c82e
parent 12251 fd7086b701de
child 12503 b01dd0ef43aa
equal deleted inserted replaced
12353:e814f2e1059c 12355:c703dc95c82e
   187 # workflow actions #############################################################
   187 # workflow actions #############################################################
   188 
   188 
   189 class WorkflowActions(action.Action):
   189 class WorkflowActions(action.Action):
   190     """fill 'workflow' sub-menu of the actions box"""
   190     """fill 'workflow' sub-menu of the actions box"""
   191     __regid__ = 'workflow'
   191     __regid__ = 'workflow'
   192     __select__ = (action.Action.__select__ & one_line_rset() &
   192     __select__ = (action.Action.__select__ & one_line_rset()
   193                   relation_possible('in_state'))
   193                   & relation_possible('in_state'))
   194 
   194 
   195     submenu = _('workflow')
   195     submenu = _('workflow')
   196     order = 10
   196     order = 10
   197 
   197 
   198     def fill_menu(self, box, menu):
   198     def fill_menu(self, box, menu):