Changeset 8069 for main/waeup.kofa/trunk/src
- Timestamp:
- 9 Apr 2012, 06:34:38 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py
r8052 r8069 34 34 from waeup.kofa.payments.interfaces import IOnlinePayment 35 35 from waeup.kofa.schoolgrades import ResultEntryField 36 from waeup.kofa.students.vocabularies import ( 37 lgas_vocab, GenderSource) 36 from waeup.kofa.students.vocabularies import GenderSource 38 37 from waeup.kofa.university.vocabularies import ( 39 38 course_levels, AppCatSource, CertificateSource) … … 343 342 required = True, 344 343 ) 345 lga = schema.Choice(346 source = lgas_vocab,347 title = _(u'State/LGA'),348 default = 'foreigner',349 required = False,350 )351 344 sex = schema.Choice( 352 345 title = _(u'Sex'), -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r8048 r8069 157 157 self.browser.getControl(name="form.course1").value = ['CERT1'] 158 158 self.browser.getControl(name="form.date_of_birth").value = '09/09/1988' 159 self.browser.getControl(name="form.lga").value = ['foreigner']160 159 self.browser.getControl(name="form.sex").value = ['m'] 161 160 self.browser.getControl(name="form.email").value = 'xx@yy.zz' -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py
r8057 r8069 140 140 'applicant_id,application_date,application_number,course1,course2,' 141 141 'course_admitted,date_of_birth,display_fullname,email,firstname,' 142 'history,lastname,l ga,locked,middlename,notice,password,phone,'142 'history,lastname,locked,middlename,notice,password,phone,' 143 143 'reg_number,screening_score,screening_venue,sex,state,' 144 144 'student_id\r\n' … … 147 147 self.assertTrue( 148 148 'Application initialized by system\'],Tester,' 149 ' foreigner,0,,,,,,,,,initialized,\r\n'149 '0,,,,,,,,,initialized,\r\n' 150 150 in result) 151 151 return … … 164 164 'applicant_id,application_date,application_number,course1,course2,' 165 165 'course_admitted,date_of_birth,display_fullname,email,firstname,' 166 'history,lastname,l ga,locked,middlename,notice,password,phone,'166 'history,lastname,locked,middlename,notice,password,phone,' 167 167 'reg_number,screening_score,screening_venue,sex,state,' 168 168 'student_id\r\n' … … 172 172 self.assertTrue( 173 173 'Application initialized by system\'],' 174 'Tester, foreigner,0,M.,"Some notice\nin lines.",any password,'174 'Tester,0,M.,"Some notice\nin lines.",any password,' 175 175 '+234-123-12345,123456,98,Exam Room,f,initialized,\r\n' 176 176 in result) … … 188 188 'applicant_id,application_date,application_number,course1,course2,' 189 189 'course_admitted,date_of_birth,display_fullname,email,firstname,' 190 'history,lastname,l ga,locked,middlename,notice,password,phone,'190 'history,lastname,locked,middlename,notice,password,phone,' 191 191 'reg_number,screening_score,screening_venue,sex,state,' 192 192 'student_id\r\n' … … 196 196 self.assertTrue( 197 197 'Application initialized by system\'],' 198 'Tester, foreigner,0,M.,"Some notice\nin lines.",any password,'198 'Tester,0,M.,"Some notice\nin lines.",any password,' 199 199 '+234-123-12345,123456,98,Exam Room,f,initialized,\r\n' 200 200 in result) -
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r8008 r8069 232 232 233 233 nationality = schema.Choice( 234 source= nats_vocab,234 vocabulary = nats_vocab, 235 235 title = _(u'Nationality'), 236 default = 'nigeria',237 236 required = False, 238 237 ) -
main/waeup.kofa/trunk/src/waeup/kofa/students/vocabularies.py
r7915 r8069 27 27 from waeup.kofa.interfaces import SimpleKofaVocabulary 28 28 from waeup.kofa.interfaces import MessageFactory as _ 29 from waeup.kofa. students.lgas import LGAS30 from waeup.kofa. students.nats import NATS29 from waeup.kofa.utils.helpers import get_sorted_preferred 30 from waeup.kofa.utils.countries import COUNTRIES 31 31 from waeup.kofa.university.vocabularies import course_levels 32 32 33 lgas_vocab = SimpleKofaVocabulary(34 *sorted([(x[1],x[0]) for x in LGAS]))35 33 36 nats_vocab = SimpleKofaVocabulary( 37 *sorted([(x[1],x[0]) for x in NATS])) 34 #: a tuple of tuples (<COUNTRY-NAME>, <ISO-CODE>) with Nigeria first. 35 COUNTRIES = get_sorted_preferred(COUNTRIES, ['NG']) 36 nats_vocab = SimpleKofaVocabulary(*COUNTRIES) 38 37 39 38 def study_levels(studycourse): -
main/waeup.kofa/trunk/src/waeup/kofa/utils/utils.py
r7993 r8069 140 140 9: 'N/A' 141 141 } 142 143 #: a tuple of tuples (<COUNTRY-NAME>, <ISO-CODE>) with Nigeria first.144 COUNTRIES = get_sorted_preferred(COUNTRIES, ['NG'])145 142 146 143 def sendContactForm(self,from_name,from_addr,rcpt_name,rcpt_addr,
Note: See TracChangeset for help on using the changeset viewer.