Changeset 9955
- Timestamp:
- 15 Feb 2013, 09:57:56 (12 years ago)
- Location:
- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students
- Files:
-
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/browser.py
r9789 r9955 60 60 class CustomStartClearancePage(StartClearancePage): 61 61 62 grok.template('startclearance') 63 64 def update(self, SUBMIT=None): 65 if not self.context.state == ADMITTED: 66 self.flash(_("Wrong state")) 67 self.redirect(self.url(self.context)) 68 return 69 if not self.portrait_uploaded: 70 self.flash(_("No portrait uploaded.")) 71 self.redirect(self.url(self.context, 'change_portrait')) 72 return 73 if not self.all_required_fields_filled: 74 self.flash(_("Not all required fields filled.")) 75 self.redirect(self.url(self.context, 'edit_base')) 76 return 77 if SUBMIT is None: 78 return 79 IWorkflowInfo(self.context).fireTransition('start_clearance') 80 self.flash(_('Clearance process has been started.')) 81 self.redirect(self.url(self.context,'cedit')) 82 return 62 with_ac = False 83 63 84 64 class CustomStudentClearanceEditFormPage(NigeriaStudentClearanceEditFormPage): … … 92 72 """ Page to add an online payment ticket 93 73 """ 94 grok.template('bookbed')95 74 buttonname = _('Create bed ticket') 96 75 notice = ''
Note: See TracChangeset for help on using the changeset viewer.