Changeset 6459 for main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Timestamp:
- 23 Jun 2011, 06:25:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6457 r6459 425 425 426 426 # Mark pin as used (this also fires a pin related transition) 427 invalidate_accesscode(pin) 427 comment = u"Invalidated by applicant" 428 invalidate_accesscode(pin, comment) 428 429 429 430 if not pin in self.context.keys(): … … 473 474 ac_number = self.request.form.get('form.ac_number', None) 474 475 pin = '%s-%s-%s' % (self.ac_prefix,ac_series,ac_number) 475 if not invalidate_accesscode(pin ):476 if not invalidate_accesscode(pin, comment=u"Invalidated by system"): 476 477 self.flash('%s is not a valid access code.' % pin) 477 478 self.redirect(self.url(self.context, '@@manage')+'#tab-2') … … 740 741 grok.name('edit') 741 742 grok.require('waeup.handleApplication') 742 form_fields = grok.AutoFields(IApplicantEdit).omit('locked') 743 form_fields = grok.AutoFields(IApplicantEdit).omit( 744 'locked', 'course_admitted', 'application_date', 'student_id', 745 'screening_score', 746 ) 743 747 form_fields['passport'].custom_widget = EncodingImageFileWidget 744 748 form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year')
Note: See TracChangeset for help on using the changeset viewer.