equal
deleted
inserted
replaced
103 return actions |
103 return actions |
104 |
104 |
105 |
105 |
106 def workflow_actions(self, entity, box): |
106 def workflow_actions(self, entity, box): |
107 if 'in_state' in entity.e_schema.subject_relations() and entity.in_state: |
107 if 'in_state' in entity.e_schema.subject_relations() and entity.in_state: |
|
108 _ = self.req._ |
108 state = entity.in_state[0] |
109 state = entity.in_state[0] |
109 transitions = list(state.transitions(entity)) |
110 transitions = list(state.transitions(entity)) |
110 if transitions: |
111 if transitions: |
111 menu_title = u'%s: %s' % (_('state'), state.view('text')) |
112 menu_title = u'%s: %s' % (_('state'), state.view('text')) |
112 menu_items = [] |
113 menu_items = [] |