Changeset 10359 for main


Ignore:
Timestamp:
23 Jun 2013, 06:06:24 (12 years ago)
Author:
Henrik Bettermann
Message:

Customize workflow. Tests will follow.

Location:
main/waeup.imostate/src/waeup/imostate/applicants
Files:
1 added
1 edited

Legend:

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

    r10350 r10359  
    2424    IExtFileStore, IFileStoreNameChooser)
    2525from zope.formlib.textwidgets import BytesDisplayWidget
     26from hurry.workflow.interfaces import IWorkflowState
    2627from waeup.kofa.utils.helpers import string_from_bytes, file_size
    2728from waeup.imostate.applicants.interfaces import (
     
    3637    NigeriaApplicantEditFormPage,
    3738    NigeriaPDFApplicationSlip)
     39
     40from waeup.imostate.applicants.workflow import STARTED
    3841
    3942MAX_FILE_UPLOAD_SIZE = 1024 * 500
     
    171174    """
    172175    grok.template('applicanteditpage')
     176    submit_state = STARTED
    173177
    174178    @property
     
    178182        form_fields['reg_number'].for_display = True
    179183        return form_fields
     184
     185    @property
     186    def display_actions(self):
     187        state = IWorkflowState(self.context).getState()
     188        actions = [[],[]]
     189        if state == STARTED:
     190            actions = [[_('Save'), _('Final Submit')], []]
     191        return actions
    180192
    181193    def dataNotComplete(self):
Note: See TracChangeset for help on using the changeset viewer.