Changeset 14025 for main/waeup.kofa/trunk/src
- Timestamp:
- 8 Jul 2016, 12:48:18 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r14024 r14025 69 69 grok.context(IKofaObject) # Make IKofaObject the default context 70 70 71 WARNING = _('You can not edit your application records after final submission.' 72 ' You really want to submit?') 73 71 74 class ApplicantsRootPage(KofaDisplayFormPage): 72 75 grok.context(IApplicantsRoot) … … 1070 1073 return False 1071 1074 1072 def final_submit_warning():1073 if IApplicant.get('referees'):1074 return _('You can not edit your application record after '1075 'final submission and invitation emails will be sent to the '1076 'designated referees directly after submission. '1077 'You really want to submit?')1078 return _('You can not edit your application records after final submission.'1079 ' You really want to submit?')1080 1081 1075 class ApplicantEditFormPage(ApplicantManageFormPage): 1082 1076 """An applicant-centered edit view for applicant data. … … 1208 1202 return failed, emails_sent 1209 1203 1210 @action(_('Finally Submit'), warning= final_submit_warning())1204 @action(_('Finally Submit'), warning=WARNING) 1211 1205 def finalsubmit(self, **data): 1212 1206 if self.upload_success is False: # False is not None!
Note: See TracChangeset for help on using the changeset viewer.