Ignore:
Timestamp:
23 Jun 2013, 06:03:07 (11 years ago)
Author:
Henrik Bettermann
Message:

For imostate we have to customize the workflow. Applicants do not pay.

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  
    940940    grok.template('applicanteditpage')
    941941    manage_applications = False
     942    submit_state = PAID
    942943
    943944    @property
    944945    def display_actions(self):
    945946        state = IWorkflowState(self.context).getState()
    946         if state == INITIALIZED:
    947             actions = [[],[]]
    948         elif state == STARTED:
     947        actions = [[],[]]
     948        if state == STARTED:
    949949            actions = [[_('Save')],
    950950                [_('Add online payment ticket'),_('Remove selected tickets')]]
     
    952952            actions = [[_('Save'), _('Final Submit')],
    953953                [_('Remove selected tickets')]]
    954         else:
    955             actions = [[],[]]
    956954        return actions
    957955
     
    10191017        # This shouldn't happen, but the application officer
    10201018        # might have forgotten to lock the form after changing the state
    1021         if state != PAID:
     1019        if state != self.submit_state:
    10221020            self.flash(_('The form cannot be submitted. Wrong state!'))
    10231021            return
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/workflow.py

    r9398 r10358  
    138138        source = CREATED,
    139139        destination = STARTED),
     140
    140141    Transition(
    141142        transition_id = 'reset5',
     
    144145        source = SUBMITTED,
    145146        destination = PAID),
     147
    146148    Transition(
    147149        transition_id = 'reset6',
     
    150152        source = PAID,
    151153        destination = STARTED),
     154
    152155    Transition(
    153156        transition_id = 'reset7',
Note: See TracChangeset for help on using the changeset viewer.