- Timestamp:
- 26 Feb 2014, 07:54:30 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r11254 r11437 47 47 from waeup.kofa.browser.breadcrumbs import Breadcrumb 48 48 from waeup.kofa.browser.layout import ( 49 NullValidator, jsaction, action, UtilityView , JSAction)49 NullValidator, jsaction, action, UtilityView) 50 50 from waeup.kofa.browser.pages import ( 51 51 add_local_role, del_local_roles, doll_up, ExportCSVView) … … 64 64 grok.context(IKofaObject) # Make IKofaObject the default context 65 65 66 class SubmitJSAction(JSAction): 67 68 msg = _('\'You can not edit your application records after final submission.' 69 ' You really want to submit?\'') 70 71 class submitaction(grok.action): 72 73 def __call__(self, success): 74 action = SubmitJSAction(self.label, success=success, **self.options) 75 self.actions.append(action) 76 return action 66 WARNING = _('You can not edit your application records after final submission.' 67 ' You really want to submit?') 77 68 78 69 class ApplicantsRootPage(KofaDisplayFormPage): … … 1033 1024 return 1034 1025 1035 @ submitaction(_('Final Submit'))1026 @action(_('Final Submit'), warning=WARNING) 1036 1027 def finalsubmit(self, **data): 1037 1028 if self.upload_success is False: # False is not None!
Note: See TracChangeset for help on using the changeset viewer.