Changeset 10358 for main/waeup.kofa/trunk/src
- Timestamp:
- 23 Jun 2013, 06:03:07 (11 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r10221 r10358 940 940 grok.template('applicanteditpage') 941 941 manage_applications = False 942 submit_state = PAID 942 943 943 944 @property 944 945 def display_actions(self): 945 946 state = IWorkflowState(self.context).getState() 946 if state == INITIALIZED: 947 actions = [[],[]] 948 elif state == STARTED: 947 actions = [[],[]] 948 if state == STARTED: 949 949 actions = [[_('Save')], 950 950 [_('Add online payment ticket'),_('Remove selected tickets')]] … … 952 952 actions = [[_('Save'), _('Final Submit')], 953 953 [_('Remove selected tickets')]] 954 else:955 actions = [[],[]]956 954 return actions 957 955 … … 1019 1017 # This shouldn't happen, but the application officer 1020 1018 # might have forgotten to lock the form after changing the state 1021 if state != PAID:1019 if state != self.submit_state: 1022 1020 self.flash(_('The form cannot be submitted. Wrong state!')) 1023 1021 return -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/workflow.py
r9398 r10358 138 138 source = CREATED, 139 139 destination = STARTED), 140 140 141 Transition( 141 142 transition_id = 'reset5', … … 144 145 source = SUBMITTED, 145 146 destination = PAID), 147 146 148 Transition( 147 149 transition_id = 'reset6', … … 150 152 source = PAID, 151 153 destination = STARTED), 154 152 155 Transition( 153 156 transition_id = 'reset7',
Note: See TracChangeset for help on using the changeset viewer.