Changeset 5484 for main/waeup.sirp/trunk/src/waeup/sirp/jambtables
- Timestamp:
- 24 Aug 2010, 11:56:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/jambtables/browser.py
r5453 r5484 32 32 from waeup.sirp.jambtables.util import get_applicant_data 33 33 from waeup.sirp.jambtables.interfaces import ( 34 IApplicant, IApplicantContainer, IApplicantPrincipal )34 IApplicant, IApplicantContainer, IApplicantPrincipal, IApplicantPDEEditData) 35 35 36 36 … … 107 107 grok.context(IApplicant) 108 108 grok.name('edit') 109 form_fields = grok.AutoFields(IApplicant) 110 form_fields['fst_sit_results'].custom_widget = list_results_widget 111 label = 'Edit Application' 109 form_fields = grok.AutoFields(IApplicantPDEEditData) 110 111 @property 112 def label(self): 113 # XXX: Use current/upcoming session 114 return 'Apply for Post UDE Screening Test (2009/2010)' 112 115 title = 'Edit Application' 113 116 pnav = 1 … … 119 122 return 120 123 121 @grok.action(' Save and return')122 def saveAndReturn(self, **data):124 @grok.action('Final Submit') 125 def finalsubmit(self, **data): 123 126 self.applyData(self.context, **data) 124 self.redirect(self.url(self.context)) 125 return 126 127 @grok.action('Cancel', validator=NullValidator) 128 def cancel(self, **data): 129 self.redirect(self.url(self.context)) 127 self.context._p_changed = True 128 # XXX: Lock the form for editing... 130 129 return 131 130
Note: See TracChangeset for help on using the changeset viewer.