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) |