Ignore:
Timestamp:
23 Jun 2015, 07:29:31 (10 years ago)
Author:
Henrik Bettermann
Message:

Adjust to extended interfaces in base package.

Location:
main/kofacustom.wdu/trunk/src/kofacustom/wdu/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.wdu/trunk/src/kofacustom/wdu/applicants/export.py

    r12982 r13097  
    3636        INigeriaPGApplicant.names() +
    3737        IApplicantBaseData.names()
    38         ))) + ('container_code',)
     38        )))
  • main/kofacustom.wdu/trunk/src/kofacustom/wdu/applicants/tests/test_browser.py

    r12982 r13097  
    7979        self.assertMatches(result,
    8080            'aggregate,applicant_id,application_date,application_number,'
    81             'body_responsible_address,course1,course2,course_admitted,'
    82             'date_of_birth,display_fullname,email,emp2_end,emp2_position,'
    83             'emp2_reason,emp2_start,emp_end,emp_position,emp_reason,'
    84             'emp_start,employer,employer2,firstname,history,hq_degree,'
    85             'hq_disc,hq_matric_no,hq_school,hq_session,hq_type,'
    86             'jamb_reg_number,jamb_score,jamb_subjects,lastname,lga,'
     81            'body_responsible_address,container_code,course1,course2,'
     82            'course_admitted,date_of_birth,display_fullname,email,emp2_end,'
     83            'emp2_position,emp2_reason,emp2_start,emp_end,emp_position,'
     84            'emp_reason,emp_start,employer,employer2,firstname,'
     85            'history,hq_degree,hq_disc,hq_matric_no,hq_school,hq_session,'
     86            'hq_type,jamb_reg_number,jamb_score,jamb_subjects,lastname,lga,'
    8787            'locked,marit_stat,middlename,nationality,next_kin_address,'
    8888            'notice,nysc_lga,nysc_year,olevel_exam_date,olevel_exam_date2,'
     
    9191            'olevel_type2,password,phone,pp_school,presently_inst,'
    9292            'reg_number,religion,result_uploaded,screening_date,'
    93             'screening_score,screening_venue,sex,special_application,'
    94             'state,student_id,suspended,container_code\r\n'
    95             ',dp2011_654321,,654321,,CERT1,CERT1,CERT1,1981-02-04#,'
     93            'screening_score,screening_venue,sex,special,special_application,'
     94            'state,student_id,suspended,translated_state\r\n'
     95            ',dp2011_654321,,654321,,dp2011,CERT1,CERT1,CERT1,1981-02-04#,'
    9696            'Anna M. Tester,anna@sample.com,,,,,,,,,,,Anna,'
    97             '[u\'2015-05-22 05:35:35 WAT - Application initialized by system\']'
    98             ',,,,,,,,,,Tester,,0,,M.,NG,,"Some notice\nin lines.",,,,,,,,,,,,,'
     97            '[u\'2015-06-23 08:21:37 WAT - Application initialized by system\']'
     98            ',,,,,,,,,,Tester,,0,,M.,NG,,"Some notice in lines.",,,,,,,,,,,,,'
    9999            'any password,+234-123-12345#,,,123456,,,'
    100             '"Saturday, 16th June 2012 2:00:00 PM",98,Exam Room,f,,'
    101             'initialized,,0,dp2011\r\n')
     100            '"Saturday, 16th June 2012 2:00:00 PM",98,Exam Room,'
     101            'f,,,initialized,,0,initialized\r\n')
    102102        # We can import the same file if we ignore some columns.
    103103        # Since the applicants_catalog hasn't been notified, the same
     
    106106        result = processor.doImport(
    107107            self.outfile,
    108             ['aggreagate','ignore_applicant_id','application_date',
    109             'ignore_application_number',
    110             'body_responsible_address','course1','course2','course_admitted',
    111             'date_of_birth','display_fullname','email','emp2_end','emp2_position',
    112             'emp2_reason','emp2_start','emp_end','emp_position','emp_reason',
    113             'emp_start','employer','employer2','firstname','history','hq_degree',
    114             'hq_disc','hq_matric_no','hq_school','hq_session','hq_type',
    115             'jamb_reg_number','jamb_score','jamb_subjects','lastname','lga',
     108            ['aggregate','ignore_applicant_id','application_date','ignore_application_number',
     109            'body_responsible_address','container_code','course1','course2',
     110            'course_admitted','date_of_birth','ignore_display_fullname','email','emp2_end',
     111            'emp2_position','emp2_reason','emp2_start','emp_end','emp_position',
     112            'emp_reason','emp_start','employer','employer2','firstname',
     113            'ignore_history','hq_degree','hq_disc','hq_matric_no','hq_school','hq_session',
     114            'hq_type','jamb_reg_number','jamb_score','jamb_subjects','lastname','lga',
    116115            'locked','marit_stat','middlename','nationality','next_kin_address',
    117116            'notice','nysc_lga','nysc_year','olevel_exam_date','olevel_exam_date2',
     
    120119            'olevel_type2','password','phone','pp_school','presently_inst',
    121120            'reg_number','religion','result_uploaded','screening_date',
    122             'screening_score','screening_venue','sex','special_application',
    123             'state','student_id','suspended','container_code'],
     121            'screening_score','screening_venue','sex','ignore_special','special_application',
     122            'state','student_id','suspended','ignore_translated_state'],
    124123            mode='create')
    125124        num_succ, num_fail, finished_path, failed_path = result
     
    134133        result = processor.doImport(
    135134            self.outfile,
    136             ['aggreagate','ignore_applicant_id','application_date',
    137             'ignore_application_number',
    138             'body_responsible_address','course1','course2','course_admitted',
    139             'date_of_birth','display_fullname','email','emp2_end','emp2_position',
    140             'emp2_reason','emp2_start','emp_end','emp_position','emp_reason',
    141             'emp_start','employer','employer2','firstname','history','hq_degree',
    142             'hq_disc','hq_matric_no','hq_school','hq_session','hq_type',
    143             'jamb_reg_number','jamb_score','jamb_subjects','lastname','lga',
     135            ['aggregate','ignore_applicant_id','application_date','ignore_application_number',
     136            'body_responsible_address','ignore_container_code','course1','course2',
     137            'course_admitted','date_of_birth','ignore_display_fullname','email','emp2_end',
     138            'emp2_position','emp2_reason','emp2_start','emp_end','emp_position',
     139            'emp_reason','emp_start','employer','employer2','firstname',
     140            'ignore_history','hq_degree','hq_disc','hq_matric_no','hq_school','hq_session',
     141            'hq_type','jamb_reg_number','jamb_score','jamb_subjects','lastname','lga',
    144142            'locked','marit_stat','middlename','nationality','next_kin_address',
    145143            'notice','nysc_lga','nysc_year','olevel_exam_date','olevel_exam_date2',
     
    148146            'olevel_type2','password','phone','pp_school','presently_inst',
    149147            'reg_number','religion','result_uploaded','screening_date',
    150             'screening_score','screening_venue','sex','special_application',
    151             'state','student_id','suspended','ignore_container_code'],
     148            'screening_score','screening_venue','sex','ignore_special','special_application',
     149            'state','student_id','suspended','ignore_translated_state'],
    152150            mode='update')
    153151        num_succ, num_fail, finished_path, failed_path = result
Note: See TracChangeset for help on using the changeset viewer.