Changeset 6300 for main/waeup.sirp/trunk/src
- Timestamp:
- 8 Jun 2011, 21:12:34 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py
r6295 r6300 26 26 start_transition = Transition( 27 27 transition_id = 'start', 28 title = 'Start ',28 title = 'Start application', 29 29 source = INITIALIZED, 30 30 destination = STARTED) … … 32 32 submit_transition = Transition( 33 33 transition_id = 'submit', 34 title = 'Submit ',34 title = 'Submit application record', 35 35 source = STARTED, 36 36 destination = SUBMITTED) … … 38 38 admit_transition = Transition( 39 39 transition_id = 'admit', 40 title = 'Admit ',40 title = 'Admit applicant', 41 41 source = SUBMITTED, 42 42 destination = ADMITTED) 43 43 44 defer_transition = Transition(45 transition_id = ' defer',46 title = ' Defer',44 refuse1_transition = Transition( 45 transition_id = 'refuse1', 46 title = 'Refuse application', 47 47 source = SUBMITTED, 48 destination = NOT_ADMITTED) 49 50 refuse2_transition = Transition( 51 transition_id = 'refuse2', 52 title = 'Refuse application', 53 source = ADMITTED, 48 54 destination = NOT_ADMITTED) 49 55 … … 54 60 destination = CREATED) 55 61 56 #final_transition = Transition( 57 # transition_id = 'finalize', 58 # title = 'Delete', 59 # source = ADMITTED, 60 # destination = None) 62 reset1_transition = Transition( 63 transition_id = 'reset1', 64 title = 'Reset application', 65 source = SUBMITTED, 66 destination = STARTED) 67 68 reset2_transition = Transition( 69 transition_id = 'reset2', 70 title = 'Reset application', 71 source = ADMITTED, 72 destination = STARTED) 73 74 reset3_transition = Transition( 75 transition_id = 'reset3', 76 title = 'Reset application', 77 source = NOT_ADMITTED, 78 destination = STARTED) 79 80 reset4_transition = Transition( 81 transition_id = 'reset4', 82 title = 'Reset application', 83 source = CREATED, 84 destination = STARTED) 61 85 62 86 return [init_transition, start_transition, submit_transition, admit_transition, 63 defer_transition, create_transition,] 87 create_transition, refuse1_transition, refuse2_transition, reset1_transition, 88 reset2_transition, reset3_transition, reset4_transition] 64 89 65 90 … … 117 142 grok.global_utility(ApplicationWorkflowNullVersions, IWorkflowVersions) 118 143 119 class WorkflowState(grok.Adapter, WorkflowState):144 class ApplicationState(grok.Adapter, WorkflowState): 120 145 """An adapter to adapt Applicant objects to workflow states. 121 146 """ … … 123 148 grok.provides(IWorkflowState) 124 149 125 class WorkflowInfo(grok.Adapter, WorkflowInfo):150 class ApplicationInfo(grok.Adapter, WorkflowInfo): 126 151 """Adapter to adapt Applicant objects to workflow info objects. 127 152 """
Note: See TracChangeset for help on using the changeset viewer.