Changeset 8550 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 29 May 2012, 22:36:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r8547 r8550 44 44 from waeup.kofa.browser.resources import toggleall 45 45 from waeup.kofa.browser.layout import ( 46 NullValidator, jsaction, action, UtilityView )46 NullValidator, jsaction, action, UtilityView, JSAction) 47 47 from waeup.kofa.browser.pages import add_local_role, del_local_roles 48 48 from waeup.kofa.browser.resources import datepicker, tabs, datatable, warning … … 60 60 61 61 grok.context(IKofaObject) # Make IKofaObject the default context 62 63 class SubmitJSAction(JSAction): 64 65 msg = _('\'You can not edit your application records after final submission.' 66 ' You really want to submit?\'') 67 68 class submitaction(grok.action): 69 70 def __call__(self, success): 71 action = SubmitJSAction(self.label, success=success, **self.options) 72 self.actions.append(action) 73 return action 62 74 63 75 class ApplicantsRootPage(KofaDisplayFormPage): … … 884 896 return 885 897 886 @ action(_('Final Submit'))898 @submitaction(_('Final Submit')) 887 899 def finalsubmit(self, **data): 888 900 if self.passport_changed is False: # False is not None!
Note: See TracChangeset for help on using the changeset viewer.