web/views/schemaentities.py
branchtls-sprint
changeset 640 8e64f12be69c
parent 0 b97547f5f1fa
child 652 603c782dc092
equal deleted inserted replaced
635:305da8d6aa2d 640:8e64f12be69c
   109             self.w(u'</em>')
   109             self.w(u'</em>')
   110         
   110         
   111 
   111 
   112 from cubicweb.web.action import EntityAction
   112 from cubicweb.web.action import EntityAction
   113 
   113 
   114 class ViewWorkflowAction(EntityAction):
   114 class ViewWorkflowAction(Action):
   115     id = 'workflow'
   115     id = 'workflow'
       
   116     __selectors__ = (implements('EEType'), )
       
   117     
   116     category = 'mainactions'
   118     category = 'mainactions'
   117     title = _('view workflow')
   119     title = _('view workflow')
   118     accepts = ('EEType',)
   120     accepts = ('EEType',)
   119     condition = 'S state_of X' # must have at least one state associated
   121     condition = 'S state_of X' # must have at least one state associated
   120     def url(self):
   122     def url(self):