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

Adjust to extended interfaces in base package.

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

Legend:

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

    r12084 r13096  
    3636        INigeriaPGApplicant.names() +
    3737        IApplicantBaseData.names()
    38         ))) + ('container_code',)
     38        )))
  • main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/applicants/tests/test_browser.py

    r12084 r13096  
    7878        result = open(self.outfile, 'rb').read()
    7979        self.assertMatches(result,
     80        self.assertMatches(result,
    8081            'aggregate,applicant_id,application_date,application_number,'
    81             'course1,course2,course_admitted,date_of_birth,display_fullname,'
    82             'email,emp2_end,emp2_position,emp2_reason,emp2_start,emp_end,'
    83             'emp_position,emp_reason,emp_start,employer,employer2,'
    84             'firstname,history,hq_degree,hq_disc,hq_matric_no,hq_school,'
    85             'hq_session,hq_type,jamb_age,jamb_score,jamb_subjects,lastname,lga,'
    86             'locked,middlename,nationality,notice,nysc_lga,nysc_year,'
    87             'password,phone,pp_school,presently_inst,reg_number,'
    88             'result_uploaded,screening_date,screening_score,'
    89             'screening_venue,sex,special_application,'
    90             'state,student_id,suspended,container_code\r\n'
    91             ',dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04#,'
     82            'container_code,course1,course2,course_admitted,date_of_birth,'
     83            'display_fullname,email,emp2_end,emp2_position,emp2_reason,'
     84            'emp2_start,emp_end,emp_position,emp_reason,emp_start,employer,'
     85            'employer2,firstname,history,hq_degree,hq_disc,hq_matric_no,'
     86            'hq_school,hq_session,hq_type,jamb_age,jamb_score,jamb_subjects,'
     87            'lastname,lga,locked,middlename,nationality,notice,nysc_lga,'
     88            'nysc_year,password,phone,pp_school,presently_inst,reg_number,'
     89            'result_uploaded,screening_date,screening_score,screening_venue,'
     90            'sex,special,special_application,state,student_id,suspended,'
     91            'translated_state\r\n'
     92            ',dp2011_654321,,654321,dp2011,CERT1,CERT1,CERT1,1981-02-04#,'
    9293            'Anna M. Tester,anna@sample.com,,,,,,,,,,,Anna,'
    93             '[u\'2012-10-28 21:27:52 WAT - Application initialized by system\']'
    94             ',,,,,,,,,,Tester,,0,M.,NG,"Some notice\nin lines.",,,'
    95             'any password,+234-123-12345#,,,123456,,'
    96             '"Saturday, 16th June 2012 2:00:00 PM",98,Exam Room,f,,initialized,,'
    97             '0,dp2011\r\n')
     94            '[u\'2015-06-23 07:31:05 WAT - Application initialized by system\']'
     95            ',,,,,,,,,,Tester,,0,M.,NG,"Some notice in lines.",,,any password,'
     96            '+234-123-12345#,,,123456,,"Saturday, 16th June 2012 2:00:00 PM",'
     97            '98,Exam Room,f,,,initialized,,0,initialized\r\n')
    9898        # We can import the same file if we ignore some columns.
    9999        # Since the applicants_catalog hasn't been notified, the same
     
    102102        result = processor.doImport(
    103103            self.outfile,
    104             ['aggreagate','ignore_applicant_id','application_date',
    105             'ignore_application_number','course1','course2',
    106             'course_admitted','date_of_birth','ignore3','email','emp2_end',
    107             'emp2_position','emp2_reason','emp2_start','emp_end','emp_position',
    108             'emp_reason','emp_start','employer','employer2','firstname','ignore4',
    109             'hq_degree','hq_disc','hq_matric_no','hq_school','hq_session','hq_type',
    110             'jamb_age','jamb_score','jamb_subjects','lastname','lga','locked','middlename',
    111             'nationality','notice','nysc_lga',
    112             'nysc_year','password','phone','pp_school','presently_inst',
    113             'reg_number','result_uploaded',
    114             'screening_date','screening_score','screening_venue','sex',
    115             'special_application',
    116             'state','student_id','suspended','container_code'],
     104            ['aggregate','ignore_applicant_id','application_date','ignore_application_number',
     105            'container_code','course1','course2','course_admitted','date_of_birth',
     106            'ignore_display_fullname','email','emp2_end','emp2_position','emp2_reason',
     107            'emp2_start','emp_end','emp_position','emp_reason','emp_start','employer',
     108            'employer2','firstname','ignore_history','hq_degree','hq_disc','hq_matric_no',
     109            'hq_school','hq_session','hq_type','jamb_age','jamb_score','jamb_subjects',
     110            'lastname','lga','locked','middlename','nationality','notice','nysc_lga',
     111            'nysc_year','password','phone','pp_school','presently_inst','reg_number',
     112            'result_uploaded','screening_date','screening_score','screening_venue',
     113            'sex','ignore_special','special_application','state','student_id','suspended',
     114            'translated_state'],
    117115            mode='create')
    118116        num_succ, num_fail, finished_path, failed_path = result
     
    128126        result = processor.doImport(
    129127            self.outfile,
    130             ['aggregate','ignore_applicant_id','application_date',
    131             'ignore_application_number','course1','course2',
    132             'course_admitted','date_of_birth','ignore3','email','emp2_end',
    133             'emp2_position','emp2_reason','emp2_start','emp_end','emp_position',
    134             'emp_reason','emp_start','employer','employer2','firstname','ignore4',
    135             'hq_degree','hq_disc','hq_matric_no','hq_school','hq_session','hq_type',
    136             'jamb_age','jamb_score','jamb_subjects','lastname','lga','locked','middlename',
    137             'nationality','notice','nysc_lga',
    138             'nysc_year','password','phone','pp_school','presently_inst',
    139             'reg_number','result_uploaded','screening_date','screening_score',
    140             'screening_venue','sex','special_application',
    141             'state','student_id','suspended','ignore_container_code'],
     128            ['aggregate','ignore_applicant_id','application_date','ignore_application_number',
     129            'ignore_container_code','course1','course2','course_admitted','date_of_birth',
     130            'ignore_display_fullname','email','emp2_end','emp2_position','emp2_reason',
     131            'emp2_start','emp_end','emp_position','emp_reason','emp_start','employer',
     132            'employer2','firstname','ignore_history','hq_degree','hq_disc','hq_matric_no',
     133            'hq_school','hq_session','hq_type','jamb_age','jamb_score','jamb_subjects',
     134            'lastname','lga','locked','middlename','nationality','notice','nysc_lga',
     135            'nysc_year','password','phone','pp_school','presently_inst','reg_number',
     136            'result_uploaded','screening_date','screening_score','screening_venue',
     137            'sex','ignore_special','special_application','state','student_id','suspended',
     138            'translated_state'],
    142139            mode='update')
    143140        num_succ, num_fail, finished_path, failed_path = result
Note: See TracChangeset for help on using the changeset viewer.