Changeset 9072
- Timestamp:
- 27 Jul 2012, 05:20:39 (12 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/applicant.py
r9071 r9072 32 32 grok.provides(INigeriaApplicant) 33 33 34 # Meanwhile perm_address has been removed but the attribute still exists in 35 # some applicant objects. So we'll leave it until all 2012 students 36 # have been created. 34 37 create_names = Applicant.create_names + [ 35 'lga', 'nationality', 'perm_address'] 38 'lga', 'nationality', 'perm_address'] 36 39 37 40 # Set all attributes of NigeriaApplicant required in INigeriaApplicant as field -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/browser.py
r9071 r9072 97 97 for field in UG_OMIT_DISPLAY_FIELDS: 98 98 form_fields = form_fields.omit(field) 99 form_fields['perm_address'].custom_widget = BytesDisplayWidget99 #form_fields['perm_address'].custom_widget = BytesDisplayWidget 100 100 form_fields['notice'].custom_widget = BytesDisplayWidget 101 101 return form_fields -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/interfaces.py
r9054 r9072 35 35 36 36 # Fields to be omitted in all display forms. course_admitted is 37 # rendered sep erately.37 # rendered separately. 38 38 39 39 OMIT_DISPLAY_FIELDS = ('locked', 'course_admitted', … … 64 64 'email', 'phone', 65 65 'date_of_birth', 'sex', 66 'nationality', 'lga', 'perm_address',66 'nationality', 'lga', #'perm_address', 67 67 'course2', 'screening_venue', 68 68 'screening_date') … … 80 80 'email', 'phone', 81 81 'date_of_birth', 'sex', 82 'nationality', 'lga', 'perm_address',82 'nationality', 'lga', #'perm_address', 83 83 'course2', 'screening_venue', 84 84 'screening_date') … … 109 109 required = False, 110 110 ) 111 perm_address = schema.Text(112 title = _(u'Permanent Address'),113 required = False,114 )111 #perm_address = schema.Text( 112 # title = _(u'Permanent Address'), 113 # required = False, 114 # ) 115 115 course1 = schema.Choice( 116 116 title = _(u'1st Choice Course of Study'), … … 221 221 required = False, 222 222 ) 223 perm_address = schema.Text(224 title = _(u'Permanent Address'),225 required = False,226 )223 #perm_address = schema.Text( 224 # title = _(u'Permanent Address'), 225 # required = False, 226 # ) 227 227 course1 = schema.Choice( 228 228 title = _(u'1st Choice Course of Study'), -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/tests/test_browser.py
r9046 r9072 343 343 'jamb_score,jamb_subjects,lastname,lga,locked,middlename,' 344 344 'nationality,notice,nysc_lga,' 345 'nysc_year,password,p erm_address,phone,pp_school,presently_inst,'345 'nysc_year,password,phone,pp_school,presently_inst,' 346 346 'reg_number,result_uploaded,screening_date,screening_score,screening_venue,sex,' 347 347 'state,student_id,' … … 350 350 self.assertTrue( 351 351 'Application initialized by system\'],,,,,,,,,Tester,,0,M.,,' 352 '"Some notice\nin lines.",,,any password, ,+234-123-12345,,,'352 '"Some notice\nin lines.",,,any password,+234-123-12345,,,' 353 353 '123456,,"Saturday, 16th June 2012 2:00:00 PM",98,Exam Room,f,' 354 354 'initialized,,0,dp2011' … … 368 368 'jamb_score','jamb_subjects','lastname','lga','locked','middlename', 369 369 'nationality','notice','nysc_lga', 370 'nysc_year','password','p erm_address','phone','pp_school','presently_inst',370 'nysc_year','password','phone','pp_school','presently_inst', 371 371 'reg_number','result_uploaded', 372 372 'screening_date','screening_score','screening_venue','sex', … … 392 392 'jamb_score','jamb_subjects','lastname','lga','locked','middlename', 393 393 'nationality','notice','nysc_lga', 394 'nysc_year','password','p erm_address','phone','pp_school','presently_inst',394 'nysc_year','password','phone','pp_school','presently_inst', 395 395 'reg_number','result_uploaded','screening_date','screening_score', 396 396 'screening_venue','sex',
Note: See TracChangeset for help on using the changeset viewer.