Changeset 11702 for main


Ignore:
Timestamp:
19 Jun 2014, 14:53:28 (10 years ago)
Author:
Henrik Bettermann
Message:

certcode and reg_number added to DataForBursaryExporter?.

Location:
main/waeup.kofa/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r11701 r11702  
    441.3dev (unreleased)
    55===================
     6
     7* certcode and reg_number added to DataForBursaryExporter.
    68
    79* Some batch processor names corrected.
  • main/waeup.kofa/trunk/src/waeup/kofa/students/export.py

    r11662 r11702  
    343343            IStudentOnlinePayment, exclude_attribs=False,
    344344            omit=['display_item']))) + (
    345             'student_id','matric_number',
     345            'student_id','matric_number','reg_number',
    346346            'firstname', 'middlename', 'lastname',
    347347            'state','current_session',
    348348            'entry_session', 'entry_mode',
    349             'faccode', 'depcode')
     349            'faccode', 'depcode','certcode')
    350350
    351351    #: The title under which this exporter will be displayed
     
    358358            student = context.student
    359359            if name in [
    360                 'student_id','matric_number',
     360                'student_id','matric_number', 'reg_number',
    361361                'firstname', 'middlename', 'lastname',
    362                 'state','current_session',
     362                'state', 'current_session',
    363363                'entry_session', 'entry_mode',
    364                 'faccode', 'depcode'] and student is not None:
     364                'faccode', 'depcode', 'certcode'] and student is not None:
    365365                value = getattr(student, name, None)
    366366        return super(
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py

    r11661 r11702  
    781781            'ac,amount_auth,creation_date,p_category,p_current,p_id,p_item,'
    782782            'p_level,p_session,p_state,payment_date,r_amount_approved,r_code,'
    783             'r_desc,student_id,matric_number,firstname,middlename,lastname,'
    784             'state,current_session,entry_session,entry_mode,faccode,depcode\r\n'
     783            'r_desc,student_id,matric_number,reg_number,firstname,middlename,lastname,'
     784            'state,current_session,entry_session,entry_mode,faccode,depcode,certcode\r\n'
    785785
    786786            '666,12.12,2012-04-01 13:12:01,schoolfee,1,my-id,p-item,100,2012,'
    787             'paid,2012-04-01 14:12:01,12.12,r-code,,A111111,234,'
    788             'Anna,M.,Tester,created,2012,2010,ug_ft,NA,NA\r\n'
     787            'paid,2012-04-01 14:12:01,12.12,r-code,,A111111,234,123,'
     788            'Anna,M.,Tester,created,2012,2010,ug_ft,NA,NA,CERT1\r\n'
    789789            )
    790790        return
Note: See TracChangeset for help on using the changeset viewer.