- Timestamp:
- 26 Apr 2012, 13:58:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r8282 r8286 759 759 @property 760 760 def display_actions(self): 761 app_state = IWorkflowState(self.context).getState()762 if app_state == INITIALIZED:761 state = IWorkflowState(self.context).getState() 762 if state == INITIALIZED: 763 763 actions = [[],[]] 764 elif app_state == STARTED:764 elif state == STARTED: 765 765 actions = [[_('Save')], 766 766 [_('Add online payment ticket'),_('Remove selected tickets')]] 767 elif app_state == PAID:767 elif state == PAID: 768 768 actions = [[_('Save'), _('Final Submit')], 769 769 [_('Remove selected tickets')]] … … 773 773 774 774 def unremovable(self, ticket): 775 app_state = IWorkflowState(self.context).getState()776 return ticket.r_code or app_state in (INITIALIZED, SUBMITTED)775 state = IWorkflowState(self.context).getState() 776 return ticket.r_code or state in (INITIALIZED, SUBMITTED) 777 777 778 778 def emit_lock_message(self): … … 826 826 return 827 827 self.applyData(self.context, **data) 828 app_state = IWorkflowState(self.context).getState()828 state = IWorkflowState(self.context).getState() 829 829 # This shouldn't happen, but the application officer 830 830 # might have forgotten to lock the form after changing the state 831 if app_state != PAID:831 if state != PAID: 832 832 self.flash(_('This form cannot be submitted. Wrong state!')) 833 833 return
Note: See TracChangeset for help on using the changeset viewer.