Changeset 15838 for main/kofacustom.iuokada
- Timestamp:
- 21 Nov 2019, 14:10:27 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/interfaces.py
r15809 r15838 31 31 contextual_reg_num_source, IApplicantBaseData) 32 32 from kofacustom.nigeria.applicants.interfaces import ( 33 LGASource, high_qual, high_grade, exam_types, 33 LGASource, high_qual, high_grade, exam_types, DisabilitiesSource, 34 programme_types_vocab, jambsubjects, validate_jamb_reg_number, 34 35 INigeriaUGApplicant, INigeriaPGApplicant, 35 36 INigeriaApplicantOnlinePayment, … … 61 62 ) 62 63 63 class ICustomUGApplicant(I NigeriaUGApplicant):64 class ICustomUGApplicant(IApplicantBaseData): 64 65 """An undergraduate applicant. 65 66 … … 69 70 """ 70 71 72 disabilities = schema.Choice( 73 title = _(u'Disability'), 74 source = DisabilitiesSource(), 75 required = False, 76 ) 77 nationality = schema.Choice( 78 source = nats_vocab, 79 title = _(u'Nationality'), 80 required = False, 81 ) 82 lga = schema.Choice( 83 source = LGASource(), 84 title = _(u'State/LGA (Nigerians only)'), 85 required = False, 86 ) 87 #perm_address = schema.Text( 88 # title = _(u'Permanent Address'), 89 # required = False, 90 # ) 91 course1 = schema.Choice( 92 title = _(u'1st Choice Course of Study'), 93 source = AppCatCertificateSource(), 94 required = True, 95 ) 96 course2 = schema.Choice( 97 title = _(u'2nd Choice Course of Study'), 98 source = AppCatCertificateSource(), 99 required = False, 100 ) 101 programme_type = schema.Choice( 102 title = _(u'Programme Type'), 103 vocabulary = programme_types_vocab, 104 required = False, 105 ) 71 106 sponsor = schema.Choice( 72 107 title = _(u'Sponsor'), … … 74 109 required = False, 75 110 ) 76 77 111 heard_about = schema.Choice( 78 112 title = _(u'How did you hear about IU?'), … … 80 114 required = False, 81 115 ) 116 fst_sit_fname = schema.TextLine( 117 title = _(u'Full Name'), 118 required = False, 119 readonly = False, 120 ) 121 fst_sit_no = schema.TextLine( 122 title = _(u'Exam Number'), 123 required = False, 124 readonly = False, 125 ) 126 fst_sit_date = FormattedDate( 127 title = _(u'Exam Date'), 128 required = False, 129 readonly = False, 130 show_year = True, 131 ) 132 fst_sit_type = schema.Choice( 133 title = _(u'Exam Type'), 134 required = False, 135 readonly = False, 136 vocabulary = exam_types, 137 ) 138 fst_sit_results = schema.List( 139 title = _(u'Exam Results'), 140 value_type = ResultEntryField(), 141 required = False, 142 readonly = False, 143 defaultFactory=list, 144 ) 145 scd_sit_fname = schema.TextLine( 146 title = _(u'Full Name'), 147 required = False, 148 readonly = False, 149 ) 150 scd_sit_no = schema.TextLine( 151 title = _(u'Exam Number'), 152 required = False, 153 readonly = False, 154 ) 155 scd_sit_date = FormattedDate( 156 title = _(u'Exam Date'), 157 required = False, 158 readonly = False, 159 show_year = True, 160 ) 161 scd_sit_type = schema.Choice( 162 title = _(u'Exam Type'), 163 required = False, 164 readonly = False, 165 vocabulary = exam_types, 166 ) 167 scd_sit_results = schema.List( 168 title = _(u'Exam Results'), 169 value_type = ResultEntryField(), 170 required = False, 171 readonly = False, 172 defaultFactory=list, 173 ) 174 jamb_subjects = schema.Text( 175 title = _(u'Subjects and Scores'), 176 required = False, 177 ) 178 jamb_subjects_list = schema.List( 179 title = _(u'JAMB Subjects'), 180 required = False, 181 defaultFactory=list, 182 value_type = schema.Choice( 183 vocabulary = jambsubjects 184 #source = JAMBSubjectSource(), 185 ), 186 ) 187 jamb_score = schema.Int( 188 title = _(u'Total JAMB Score'), 189 required = False, 190 ) 191 #jamb_age = schema.Int( 192 # title = _(u'Age (provided by JAMB)'), 193 # required = False, 194 # ) 195 jamb_reg_number = schema.TextLine( 196 title = _(u'JAMB Registration Number'), 197 required = False, 198 constraint=validate_jamb_reg_number, 199 ) 200 notice = schema.Text( 201 title = _(u'Notice'), 202 required = False, 203 ) 204 screening_venue = schema.TextLine( 205 title = _(u'Screening Venue'), 206 required = False, 207 ) 208 screening_date = schema.TextLine( 209 title = _(u'Screening Date'), 210 required = False, 211 ) 212 screening_score = schema.Int( 213 title = _(u'Screening Score (%)'), 214 required = False, 215 ) 216 aggregate = schema.Int( 217 title = _(u'Aggregate Score (%)'), 218 description = _(u'(average of relative JAMB and PUTME scores)'), 219 required = False, 220 ) 221 result_uploaded = schema.Bool( 222 title = _(u'Result uploaded'), 223 default = False, 224 required = False, 225 ) 226 student_id = schema.TextLine( 227 title = _(u'Student Id'), 228 required = False, 229 readonly = False, 230 ) 231 course_admitted = schema.Choice( 232 title = _(u'Admitted Course of Study'), 233 source = CertificateSource(), 234 required = False, 235 ) 236 locked = schema.Bool( 237 title = _(u'Form locked'), 238 default = False, 239 required = False, 240 ) 82 241 83 242 ICustomUGApplicant[ 84 ' sponsor'].order = ICustomUGApplicant['lga'].order243 'locked'].order = ICustomUGApplicant['suspended'].order 85 244 ICustomUGApplicant[ 86 'heard_about'].order = ICustomUGApplicant['lga'].order 87 ICustomUGApplicant[ 88 'sponsor'].order = ICustomUGApplicant['lga'].order 89 ICustomUGApplicant[ 90 'lga'].order = ICustomUGApplicant['nationality'].order 245 'result_uploaded'].order = ICustomUGApplicant['suspended'].order 91 246 92 247 class ICustomPGApplicant(INigeriaPGApplicant):
Note: See TracChangeset for help on using the changeset viewer.