Changeset 8071 for main/waeup.uniben/trunk/src/waeup/uniben/applicants
- Timestamp:
- 9 Apr 2012, 07:35:03 (13 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/interfaces.py
r8053 r8071 25 25 from waeup.kofa.schoolgrades import ResultEntryField 26 26 from waeup.kofa.interfaces import SimpleKofaVocabulary 27 from waeup.kofa.students.vocabularies import nats_vocab 28 from waeup.uniben.interfaces import lgas_vocab 27 29 from waeup.uniben.interfaces import MessageFactory as _ 28 30 … … 76 78 """ 77 79 80 nationality = schema.Choice( 81 source = nats_vocab, 82 title = _(u'Nationality'), 83 required = False, 84 ) 85 lga = schema.Choice( 86 source = lgas_vocab, 87 title = _(u'State/LGA (Nigerians only)'), 88 required = False, 89 ) 90 91 # This ordering doesn't work properly. 92 IUGApplicant[ 93 'nationality'].order = IApplicantBaseData['sex'].order 94 IUGApplicant[ 95 'lga'].order = IUGApplicant['nationality'].order 96 97 78 98 class IPGApplicant(IApplicantBaseData): 79 99 """A postgraduate applicant. … … 81 101 """ 82 102 103 nationality = schema.Choice( 104 source = nats_vocab, 105 title = _(u'Nationality'), 106 required = False, 107 ) 108 lga = schema.Choice( 109 source = lgas_vocab, 110 title = _(u'State/LGA (Nigerians only)'), 111 required = False, 112 ) 83 113 perm_address = schema.Text( 84 114 title = _(u'Permanent Address'), … … 206 236 207 237 238 # This ordering doesn't work properly. 239 IPGApplicant[ 240 'nationality'].order = IApplicantBaseData['sex'].order 241 IPGApplicant[ 242 'lga'].order = IPGApplicant['nationality'].order 208 243 IPGApplicant[ 209 244 'student_id'].order = IPGApplicant['notice'].order 245 210 246 211 247 class IApplicant(IUGApplicant,IPGApplicant): -
main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests.py
r8064 r8071 199 199 'emp_start,employer,employer2,firstname,history,hq_degree,hq_disc,' 200 200 'hq_matric_no,hq_school,hq_session,hq_type,lastname,lga,locked,' 201 'middlename,n otice,password,perm_address,phone,pp_school,reg_number,'202 ' screening_score,screening_venue,sex,state,student_id'201 'middlename,nationality,notice,password,perm_address,phone,pp_school,' 202 'reg_number,screening_score,screening_venue,sex,state,student_id' 203 203 in result) 204 204 self.assertTrue( 205 'Application initialized by system\'],,,,,,,Tester, foreigner,0,M.,'205 'Application initialized by system\'],,,,,,,Tester,,0,M.,,' 206 206 '"Some notice\nin lines.",any password,,+234-123-12345,,123456,98,' 207 207 'Exam Room,f,initialized,' in result)
Note: See TracChangeset for help on using the changeset viewer.