web/views/workflow.py
changeset 4004 c52619c738a5
parent 3998 94cc7cad3d2d
child 4075 e710f4052bd6
equal deleted inserted replaced
4003:b9436fe77c9e 4004:c52619c738a5
   217 
   217 
   218 
   218 
   219 # workflow entity types edition ################################################
   219 # workflow entity types edition ################################################
   220 
   220 
   221 _afs = uicfg.autoform_section
   221 _afs = uicfg.autoform_section
   222 _afs.tag_subject_of(('TrInfo', 'to_state', '*'), 'generated')
   222 _afs.tag_subject_of(('TrInfo', 'to_state', '*'), 'main', 'hidden')
   223 _afs.tag_subject_of(('TrInfo', 'from_state', '*'), 'generated')
   223 _afs.tag_subject_of(('TrInfo', 'from_state', '*'), 'main', 'hidden')
   224 _afs.tag_object_of(('State', 'allowed_transition', '*'), 'primary')
   224 _afs.tag_object_of(('State', 'allowed_transition', '*'), 'main', 'attributes')
   225 _afs.tag_subject_of(('State', 'allowed_transition', '*'), 'primary')
   225 _afs.tag_subject_of(('State', 'allowed_transition', '*'), 'main', 'attributes')
   226 
   226 
   227 def workflow_items_for_relation(req, wfeid, wfrelation, targetrelation):
   227 def workflow_items_for_relation(req, wfeid, wfrelation, targetrelation):
   228     wf = req.entity_from_eid(wfeid)
   228     wf = req.entity_from_eid(wfeid)
   229     rschema = req.vreg.schema[targetrelation]
   229     rschema = req.vreg.schema[targetrelation]
   230     return sorted((e.view('combobox'), e.eid)
   230     return sorted((e.view('combobox'), e.eid)