Ignore:
Timestamp:
4 Aug 2013, 09:06:23 (11 years ago)
Author:
Henrik Bettermann
Message:

Add Interface for transcript address.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py

    r10276 r10447  
    331331        )
    332332
     333class IStudentTranscript(IKofaObject):
     334    """Representation of student transcript data.
     335
     336    """
     337
     338    transript_address = schema.Text(
     339        title = _(u'Address'),
     340        required = False,
     341        description = _(
     342            u'Enter address the transcript has been shipped to.'),
     343        )
     344
     345
    333346class IStudent(IStudentBase,IUGStudentClearance,IPGStudentClearance,
    334     IStudentPersonal):
     347    IStudentPersonal, IStudentTranscript):
    335348    """Representation of a student.
    336349
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py

    r10296 r10447  
    108108        'my adm code,0,my clr code,1981-02-04#,anna@sample.com,,'
    109109        'Anna,Tester,234,M.,NG,,"Studentroad 21\nLagos 123456\n",,'
    110         '+234-123-12345#,123,f,A111111,0,,,created'
     110        '+234-123-12345#,123,f,A111111,0,,,,created'
    111111        )
    112112
     
    137137        result = open(self.outfile, 'rb').read()
    138138        self.assertTrue(
    139             'adm_code,clearance_locked,clr_code,date_of_birth,email,employer,'
    140             'firstname,lastname,matric_number,middlename,nationality,officer_comment,'
    141             'perm_address,personal_updated,'
    142             'phone,reg_number,sex,student_id,suspended,suspended_comment,password,'
    143             'state,history,certcode,is_postgrad,current_level,current_session\r\n'
    144 
    145             'my adm code,0,my clr code,1981-02-04#,anna@sample.com,,'
    146             'Anna,Tester,234,M.,NG,,"Studentroad 21\nLagos 123456\n",,'
    147             '+234-123-12345#,123,f,A111111,0,,,created'
     139            'adm_code,clearance_locked,clr_code,date_of_birth,email,'
     140            'employer,firstname,lastname,matric_number,middlename,'
     141            'nationality,officer_comment,perm_address,personal_updated,'
     142            'phone,reg_number,sex,student_id,suspended,suspended_comment,'
     143            'transript_address,password,state,history,certcode,is_postgrad,'
     144            'current_level,current_session\r\n'
     145            'my adm code,0,my clr code,'
     146            '1981-02-04#,anna@sample.com,,Anna,Tester,234,M.,NG,,'
     147            '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,123,f,'
     148            'A111111,0,,,,created'
    148149            in result
    149150            )
     
    158159        result = open(self.outfile, 'rb').read()
    159160        self.assertTrue(
    160             'adm_code,clearance_locked,clr_code,date_of_birth,email,employer,'
    161             'firstname,lastname,matric_number,middlename,nationality,officer_comment,'
    162             'perm_address,personal_updated'
    163             ',phone,reg_number,sex,student_id,suspended,suspended_comment,password,'
    164             'state,history,certcode,is_postgrad,current_level,current_session\r\n'
    165 
     161            'adm_code,clearance_locked,clr_code,date_of_birth,email,'
     162            'employer,firstname,lastname,matric_number,middlename,'
     163            'nationality,officer_comment,perm_address,personal_updated,'
     164            'phone,reg_number,sex,student_id,suspended,suspended_comment,'
     165            'transript_address,password,state,history,certcode,'
     166            'is_postgrad,current_level,current_session\r\n'
    166167            'my adm code,0,my clr code,1981-02-04#,anna@sample.com,,'
    167             'Anna,Tester,234,M.,NG,,"Studentroad 21\nLagos 123456\n",,'
    168             '+234-123-12345#,123,f,A111111,0,,,created'
     168            'Anna,Tester,234,M.,NG,,"Studentroad 21\nLagos 123456\n"'
     169            ',,+234-123-12345#,123,f,A111111,0,,,,created'
    169170            in result
    170171            )
     
    178179        result = open(self.outfile, 'rb').read()
    179180        self.assertTrue(
    180             'adm_code,clearance_locked,clr_code,date_of_birth,email,employer,'
    181             'firstname,lastname,matric_number,middlename,nationality,officer_comment,'
    182             'perm_address,personal_updated'
    183             ',phone,reg_number,sex,student_id,suspended,suspended_comment,password,'
    184             'state,history,certcode,is_postgrad,current_level,current_session\r\n'
    185 
     181            'adm_code,clearance_locked,clr_code,date_of_birth,email,'
     182            'employer,firstname,lastname,matric_number,middlename,'
     183            'nationality,officer_comment,perm_address,personal_updated,'
     184            'phone,reg_number,sex,student_id,suspended,suspended_comment,'
     185            'transript_address,password,state,history,certcode,'
     186            'is_postgrad,current_level,current_session\r\n'
    186187            'my adm code,0,my clr code,1981-02-04#,anna@sample.com,,'
    187             'Anna,Tester,234,M.,NG,,"Studentroad 21\nLagos 123456\n",,'
    188             '+234-123-12345#,123,f,A111111,0,,,created'
     188            'Anna,Tester,234,M.,NG,,"Studentroad 21\nLagos 123456\n"'
     189            ',,+234-123-12345#,123,f,A111111,0,,,,created'
    189190            in result
    190191            )
Note: See TracChangeset for help on using the changeset viewer.