- Timestamp:
- 21 Dec 2015, 15:01:34 (9 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/interfaces.py
r13551 r13554 39 39 from kofacustom.nigeria.interfaces import MessageFactory as _ 40 40 from kofacustom.nigeria.payments.interfaces import INigeriaOnlinePayment 41 42 programme_types_vocab = SimpleKofaVocabulary( 43 (_('Post UTME'), 'putme'), 44 (_('Post DE'), 'pude'), 45 (_('not applicable'), 'na'), 46 ) 41 47 42 48 jambsubjects = SimpleKofaVocabulary( … … 93 99 94 100 # UG students are all undergraduate students. 95 UG_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + ('jamb_subjects_list',) 101 UG_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + ( 102 'jamb_subjects_list', 'programme_type') 96 103 UG_OMIT_PDF_FIELDS = UG_OMIT_DISPLAY_FIELDS + ('phone',) 97 UG_OMIT_MANAGE_FIELDS = ('special_application','jamb_subjects_list',) 104 UG_OMIT_MANAGE_FIELDS = ( 105 'special_application', 106 'jamb_subjects_list', 107 'programme_type') 98 108 UG_OMIT_EDIT_FIELDS = UG_OMIT_MANAGE_FIELDS + OMIT_DISPLAY_FIELDS + ( 99 109 'student_id', … … 113 123 'hq_degree', 'hq_school', 114 124 'hq_session', 'hq_disc', 115 'aggregate', 'jamb_subjects') 125 'aggregate', 'jamb_subjects', 126 'programme_type') 116 127 CBT_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + CBT_OMIT_FIELDS 117 128 CBT_OMIT_MANAGE_FIELDS = CBT_OMIT_FIELDS + ('special_application',) … … 152 163 'hq_type', 'hq_matric_no', 153 164 'hq_degree', 'hq_school', 154 'hq_session', 'hq_disc', 'jamb_subjects_list') 165 'hq_session', 'hq_disc', 166 'jamb_subjects_list', 'programme_type') 155 167 PUTME_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + PUTME_OMIT_FIELDS 156 168 PUTME_OMIT_MANAGE_FIELDS = UG_OMIT_MANAGE_FIELDS + PUTME_OMIT_FIELDS … … 168 180 # PUDE is a subgroup of UG with the same interface. 169 181 PUDE_OMIT_FIELDS = ( 170 'jamb_subjects','jamb_score', 'jamb_age', 'aggregate', 'jamb_subjects_list') 182 'jamb_subjects', 183 'jamb_score', 184 'jamb_age', 185 'aggregate', 186 'jamb_subjects_list', 187 'programme_type') 171 188 PUDE_OMIT_DISPLAY_FIELDS = OMIT_DISPLAY_FIELDS + PUDE_OMIT_FIELDS 172 189 PUDE_OMIT_MANAGE_FIELDS = UG_OMIT_MANAGE_FIELDS + PUDE_OMIT_FIELDS … … 199 216 """ 200 217 218 programme_type = schema.Choice( 219 title = _(u'Programme Type'), 220 vocabulary = programme_types_vocab, 221 required = False, 222 ) 223 201 224 nationality = schema.Choice( 202 225 source = nats_vocab, -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/tests/test_browser.py
r13290 r13554 443 443 'lastname,lga,locked,middlename,' 444 444 'nationality,notice,nysc_lga,nysc_year,password,phone,' 445 'presently_inst, reg_number,result_uploaded,scd_sit_date,'445 'presently_inst,programme_type,reg_number,result_uploaded,scd_sit_date,' 446 446 'scd_sit_fname,scd_sit_no,scd_sit_results,scd_sit_type,' 447 447 'screening_date,screening_score,screening_venue,sex,special,' … … 453 453 ',,,,,,,,,,Line 1++Line 2,"[\'english_language\', \'fine_art\']",' 454 454 'Tester,,0,M.,NG,"Some notice\nin lines.",,,' 455 'any password,+234-123-12345#,, 123456,,,,,,,'455 'any password,+234-123-12345#,,,123456,,,,,,,' 456 456 '"Saturday, 16th June 2012 2:00:00 PM",98,Exam Room,f,,,' 457 457 'initialized,,0,initialized\r\n') … … 473 473 'lastname','lga','locked','middlename', 474 474 'nationality','notice','nysc_lga','nysc_year','password','phone', 475 'presently_inst',' reg_number','result_uploaded','scd_sit_date',475 'presently_inst','programme_type','reg_number','result_uploaded','scd_sit_date', 476 476 'scd_sit_fname','scd_sit_no','scd_sit_results','scd_sit_type', 477 477 'screening_date','screening_score','screening_venue','sex','special', … … 502 502 'lastname','lga','locked','middlename', 503 503 'nationality','notice','nysc_lga','nysc_year','password','phone', 504 'presently_inst',' reg_number','result_uploaded','scd_sit_date',504 'presently_inst','programme_type','reg_number','result_uploaded','scd_sit_date', 505 505 'scd_sit_fname','scd_sit_no','scd_sit_results','scd_sit_type', 506 506 'screening_date','screening_score','screening_venue','sex','special',
Note: See TracChangeset for help on using the changeset viewer.