Changeset 17627 for main/waeup.aaue/trunk/src/waeup/aaue
- Timestamp:
- 29 Oct 2023, 21:05:12 (13 months ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 5 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'), -
main/waeup.aaue/trunk/src/waeup/aaue/browser/pages.py
r17428 r17627 21 21 SessionConfigurationManageFormPage, 22 22 ConfigurationContainerManageFormPage, 23 DatacenterPage, ExportCSVPage) 23 DatacenterPage, ExportCSVPage, 24 CertificatePage, CertificateManageFormPage) 24 25 from waeup.kofa.browser.reports import ReportsContainerPage 25 26 from waeup.kofa.interfaces import IConfigurationContainer 27 from waeup.kofa.university.interfaces import ICertificate 26 28 from waeup.aaue.interfaces import ( 27 29 ICustomSessionConfiguration, 28 30 ICustomSessionConfigurationAdd) 31 32 class CustomCertificatePage(CertificatePage): 33 """Index page for certificates. 34 """ 35 form_fields = grok.AutoFields(ICertificate).omit( 36 'custom_float_2', 37 'school_fee_1', 38 'school_fee_2', 39 'school_fee_3', 40 'school_fee_4', 41 'custom_textline_1', 42 'custom_textline_2', 43 ) 44 45 class CustomCertificateManageFormPage(CertificateManageFormPage): 46 """Manage the properties of a `Certificate` instance. 47 """ 48 form_fields = grok.AutoFields(ICertificate).omit( 49 'ratio', 50 'custom_float_2', 51 'school_fee_1', 52 'school_fee_2', 53 'school_fee_3', 54 'school_fee_4', 55 'custom_textline_1', 56 'custom_textline_2', 57 'code') 29 58 30 59 class CustomConfigurationContainerManageFormPage( -
main/waeup.aaue/trunk/src/waeup/aaue/locales/en/LC_MESSAGES/waeup.kofa.po
r17431 r17627 125 125 msgstr "<b>Units: ${a}</b>" 126 126 127 #: school_fee_1128 msgid "Initial School Fee"129 msgstr "School Fees 1 (not used)"130 131 #: school_fee_2132 msgid "Returning School Fee"133 msgstr "School Fees 2 (not used)"134 135 #: school_fee_3136 msgid "Foreigner Initial School Fee"137 msgstr "School Fees 3 (not used)"138 139 #: school_fee_4140 msgid "Foreigner Returning School Fee"141 msgstr "School Fees 4 (not used)"142 143 127 msgid "Registration Number" 144 128 msgstr "(JAMB) Registration Number" … … 206 190 msgstr "Result Sheet" 207 191 192 #: school_fee_1 193 msgid "Initial School Fee" 194 msgstr "School Fees 1 (not used)" 195 196 #: school_fee_2 197 msgid "Returning School Fee" 198 msgstr "School Fees 2 (not used)" 199 200 #: school_fee_3 201 msgid "Foreigner Initial School Fee" 202 msgstr "School Fees 3 (not used)" 203 204 #: school_fee_4 205 msgid "Foreigner Returning School Fee" 206 msgstr "School Fees 4 (not used)" 207 208 208 #: waeup/kofa/university/interfaces.py:311 209 209 msgid "Custom Float 1 (not used)" 210 msgstr "Cumulative Units Taken" 211 212 #: waeup/kofa/university/interfaces.py:316 213 msgid "Custom Float 2 (not used)" 214 msgstr "Cumulative Units Passed" 210 msgstr "Cutoff JAMB Score"
Note: See TracChangeset for help on using the changeset viewer.