Changeset 17627 for main/waeup.aaue/trunk/src/waeup/aaue/applicants
- Timestamp:
- 29 Oct 2023, 21:05:12 (14 months ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/interfaces.py
r17085 r17627 555 555 @invariant 556 556 def course_choice(applicant): 557 558 if applicant.course1: 559 if applicant.jamb_score is None: 560 raise Invalid(_("Total JAMB score not set.")) 561 if applicant.course1.custom_float_1 and applicant.course1.custom_float_1 > applicant.jamb_score: 562 raise Invalid(_("You do not meet the minimum cutoff mark for course %s. Cutoff score for this course is %s. Please consider selecting an alternative choice." % ( 563 applicant.course1.code, applicant.course1.custom_float_1))) 564 565 if applicant.course2: 566 if applicant.jamb_score is None: 567 raise Invalid(_("Total JAMB score not set.")) 568 if applicant.course2.custom_float_1 and applicant.course2.custom_float_1 > applicant.jamb_score: 569 raise Invalid(_("You do not meet the minimum cutoff mark for course %s. Cutoff score for this course is %s. Please consider selecting an alternative choice." % ( 570 applicant.course2.code, applicant.course2.custom_float_1))) 571 572 if applicant.course3: 573 if applicant.jamb_score is None: 574 raise Invalid(_("Total JAMB score not set.")) 575 if applicant.course3.custom_float_1 and applicant.course3.custom_float_1 > applicant.jamb_score: 576 raise Invalid(_("You do not meet the minimum cutoff mark for course %s. Cutoff score for this course is %s. Please consider selecting an alternative choice." % ( 577 applicant.course3.code, applicant.course3.custom_float_1))) 578 557 579 if applicant.course1 == applicant.course2: 558 580 raise Invalid(_("2nd choice course must differ from 1st choice course.")) -
main/waeup.aaue/trunk/src/waeup/aaue/applicants/utils.py
r16763 r17627 53 53 SEPARATORS_DICT = { 54 54 'form.applicant_id': _(u'Base Data'), 55 #'form.course1': _(u'Programmes/Courses Desired'),55 'form.course1': _(u'JAMB Course: '), 56 56 'form.fst_sit_fname': _(u'1st Sitting'), 57 57 'form.scd_sit_fname': _(u'2nd Sitting'),
Note: See TracChangeset for help on using the changeset viewer.