Changeset 9567


Ignore:
Timestamp:
7 Nov 2012, 10:07:03 (12 years ago)
Author:
Henrik Bettermann
Message:

Add next_kin_phone.

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  
    2020from waeup.kofa.schema import TextLineChoice
    2121from waeup.kofa.interfaces import SimpleKofaVocabulary, academic_sessions_vocab
    22 from waeup.kofa.schema import FormattedDate
     22from waeup.kofa.schema import FormattedDate, PhoneNumber
    2323from waeup.kofa.schoolgrades import ResultEntryField
    2424from waeup.kofa.students.vocabularies import nats_vocab
     
    393393        required = False,
    394394        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,
    396402        )
    397403
     
    457463        required = True,
    458464        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
     474INigeriaStudentPersonalEdit['perm_address'].order = INigeriaStudentPersonal[
     475    'perm_address'].order
    462476INigeriaStudentPersonalEdit['next_kin_name'].order = INigeriaStudentPersonal[
    463477    'next_kin_name'].order
     
    466480INigeriaStudentPersonalEdit['next_kin_address'].order = INigeriaStudentPersonal[
    467481    'next_kin_address'].order
    468 INigeriaStudentPersonalEdit['perm_address'].order = INigeriaStudentPersonal[
    469     'perm_address'].order
     482INigeriaStudentPersonalEdit['next_kin_phone'].order = INigeriaStudentPersonal[
     483    'next_kin_phone'].order
    470484
    471485class INigeriaStudentStudyCourse(IStudentStudyCourse):
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_browser.py

    r9564 r9567  
    250250        self.browser.getControl(name="form.next_kin_relation").value = 'mother'
    251251        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'
    252254        self.browser.getControl("Save").click()
    253255        self.assertMatches('...Form has been saved...',
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/tests/test_export.py

    r9562 r9567  
    5555            'hq_school,hq_session,hq_type,is_staff,lastname,lga,'
    5656            '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,'
    5858            'nysc_lga,nysc_location,nysc_year,officer_comment,'
    5959            'perm_address,personal_updated,phone,reg_number,'
     
    6464            '"[(\'visual_art\', \'A1\')]",0,my clr code,1981-02-04#,,,'
    6565            'anna@sample.com,,,,,,,,,,,Anna,,,,,"[(\'visual_art\', \'A1\')]"'
    66             ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,'
     66            ',,,,,,,,,,,,,,,,Tester,,,234,M.,NG,,,,,,,,,'
    6767            '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,123,,,,,'
    6868            '"[(\'visual_art\', \'A1\')]",,f,A111111,0,,created,'
Note: See TracChangeset for help on using the changeset viewer.