- Timestamp:
- 7 Nov 2012, 10:07:03 (12 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/interfaces.py
r9564 r9567 20 20 from waeup.kofa.schema import TextLineChoice 21 21 from waeup.kofa.interfaces import SimpleKofaVocabulary, academic_sessions_vocab 22 from waeup.kofa.schema import FormattedDate 22 from waeup.kofa.schema import FormattedDate, PhoneNumber 23 23 from waeup.kofa.schoolgrades import ResultEntryField 24 24 from waeup.kofa.students.vocabularies import nats_vocab … … 393 393 required = False, 394 394 readonly = False, 395 description = _(u'Please provide email address and/or phone number.'), 395 ) 396 397 next_kin_phone = PhoneNumber( 398 title = _(u'Next of Kin Phone'), 399 description = u'', 400 required = False, 401 readonly = False, 396 402 ) 397 403 … … 457 463 required = True, 458 464 readonly = False, 459 description = _(u'Please provide email address and/or phone number.'), 460 ) 461 465 ) 466 467 next_kin_phone = PhoneNumber( 468 title = _(u'Next of Kin Phone'), 469 description = u'', 470 required = True, 471 readonly = False, 472 ) 473 474 INigeriaStudentPersonalEdit['perm_address'].order = INigeriaStudentPersonal[ 475 'perm_address'].order 462 476 INigeriaStudentPersonalEdit['next_kin_name'].order = INigeriaStudentPersonal[ 463 477 'next_kin_name'].order … … 466 480 INigeriaStudentPersonalEdit['next_kin_address'].order = INigeriaStudentPersonal[ 467 481 'next_kin_address'].order 468 INigeriaStudentPersonalEdit[' perm_address'].order = INigeriaStudentPersonal[469 ' perm_address'].order482 INigeriaStudentPersonalEdit['next_kin_phone'].order = INigeriaStudentPersonal[ 483 'next_kin_phone'].order 470 484 471 485 class INigeriaStudentStudyCourse(IStudentStudyCourse): -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_browser.py
r9564 r9567 250 250 self.browser.getControl(name="form.next_kin_relation").value = 'mother' 251 251 self.browser.getControl(name="form.next_kin_address").value = 'sweet home' 252 self.browser.getControl(name="form.next_kin_phone.country").value = ['+234'] 253 self.browser.getControl(name="form.next_kin_phone.ext").value = '45678' 252 254 self.browser.getControl("Save").click() 253 255 self.assertMatches('...Form has been saved...', -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py
r9562 r9567 55 55 'hq_school,hq_session,hq_type,is_staff,lastname,lga,' 56 56 'marit_stat,matric_number,middlename,nationality,' 57 'next_kin_address,next_kin_name,next_kin_ relation,'57 'next_kin_address,next_kin_name,next_kin_phone,next_kin_relation,' 58 58 'nysc_lga,nysc_location,nysc_year,officer_comment,' 59 59 'perm_address,personal_updated,phone,reg_number,' … … 64 64 '"[(\'visual_art\', \'A1\')]",0,my clr code,1981-02-04#,,,' 65 65 'anna@sample.com,,,,,,,,,,,Anna,,,,,"[(\'visual_art\', \'A1\')]"' 66 ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,, '66 ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,' 67 67 '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,123,,,,,' 68 68 '"[(\'visual_art\', \'A1\')]",,f,A111111,0,,created,'
Note: See TracChangeset for help on using the changeset viewer.