Ignore:
Timestamp:
26 Apr 2012, 13:58:25 (13 years ago)
Author:
Henrik Bettermann
Message:

Roll back r8282. Also in students the registration state is simply called state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r8282 r8286  
    759759    @property
    760760    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:
    763763            actions = [[],[]]
    764         elif app_state == STARTED:
     764        elif state == STARTED:
    765765            actions = [[_('Save')],
    766766                [_('Add online payment ticket'),_('Remove selected tickets')]]
    767         elif app_state == PAID:
     767        elif state == PAID:
    768768            actions = [[_('Save'), _('Final Submit')],
    769769                [_('Remove selected tickets')]]
     
    773773
    774774    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)
    777777
    778778    def emit_lock_message(self):
     
    826826            return
    827827        self.applyData(self.context, **data)
    828         app_state = IWorkflowState(self.context).getState()
     828        state = IWorkflowState(self.context).getState()
    829829        # This shouldn't happen, but the application officer
    830830        # might have forgotten to lock the form after changing the state
    831         if app_state != PAID:
     831        if state != PAID:
    832832            self.flash(_('This form cannot be submitted. Wrong state!'))
    833833            return
Note: See TracChangeset for help on using the changeset viewer.