equal
deleted
inserted
replaced
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): |