Changeset 10359
- Timestamp:
- 23 Jun 2013, 06:06:24 (11 years ago)
- 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 24 24 IExtFileStore, IFileStoreNameChooser) 25 25 from zope.formlib.textwidgets import BytesDisplayWidget 26 from hurry.workflow.interfaces import IWorkflowState 26 27 from waeup.kofa.utils.helpers import string_from_bytes, file_size 27 28 from waeup.imostate.applicants.interfaces import ( … … 36 37 NigeriaApplicantEditFormPage, 37 38 NigeriaPDFApplicationSlip) 39 40 from waeup.imostate.applicants.workflow import STARTED 38 41 39 42 MAX_FILE_UPLOAD_SIZE = 1024 * 500 … … 171 174 """ 172 175 grok.template('applicanteditpage') 176 submit_state = STARTED 173 177 174 178 @property … … 178 182 form_fields['reg_number'].for_display = True 179 183 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 180 192 181 193 def dataNotComplete(self):
Note: See TracChangeset for help on using the changeset viewer.