web/views/boxes.py
changeset 399 8df3b190275b
parent 185 9fc69c46e5e7
child 431 18b4dd650ef8
equal deleted inserted replaced
398:cc16ee7d2d86 399:8df3b190275b
   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 = []