Ignore:
Timestamp:
11 May 2013, 06:17:49 (12 years ago)
Author:
Henrik Bettermann
Message:

Do also export ratio attribute.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/university/export.py

    r9228 r10172  
    156156    #: Fieldnames considered by this exporter
    157157    fields = ('code', 'faculty_code', 'department_code', 'title', 'study_mode',
    158               'start_level', 'end_level', 'application_category',
     158              'start_level', 'end_level', 'application_category', 'ratio',
    159159              'school_fee_1', 'school_fee_2', 'school_fee_3', 'school_fee_4',
    160160              'users_with_local_roles')
  • main/waeup.kofa/trunk/src/waeup/kofa/university/tests/test_export.py

    r9228 r10172  
    379379            result,
    380380            'code,faculty_code,department_code,title,study_mode,start_level,'
    381             'end_level,application_category,school_fee_1,'
     381            'end_level,application_category,ratio,school_fee_1,'
    382382            'school_fee_2,school_fee_3,school_fee_4,users_with_local_roles\r\n'
    383             'CERT1,F1,D1,Master of Cheese,ct_ft,100,300,basic,,,,,'
     383            'CERT1,F1,D1,Master of Cheese,ct_ft,100,300,basic,,,,,,'
    384384            '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n'
    385385            )
     
    393393            result,
    394394            'code,faculty_code,department_code,title,study_mode,start_level,'
    395             'end_level,application_category,school_fee_1,'
     395            'end_level,application_category,ratio,school_fee_1,'
    396396            'school_fee_2,school_fee_3,school_fee_4,users_with_local_roles\r\n'
    397             'CERT1,F1,D1,Master of Cheese,ct_ft,100,300,basic,,,,,'
    398             '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n'
    399             'CERT2,F1,D1,Master of Cheddar,ct_ft,400,700,cest,,,,,[]\r\n'
     397            'CERT1,F1,D1,Master of Cheese,ct_ft,100,300,basic,,,,,,'
     398            '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n'
     399            'CERT2,F1,D1,Master of Cheddar,ct_ft,400,700,cest,,,,,,[]\r\n'
    400400            )
    401401        return
     
    409409            result,
    410410            'code,faculty_code,department_code,title,study_mode,start_level,'
    411             'end_level,application_category,'
     411            'end_level,application_category,ratio,'
    412412            'school_fee_1,school_fee_2,school_fee_3,school_fee_4,'
    413413            'users_with_local_roles\r\n'
    414             'CERT1,F1,D1,Master of Cheese,ct_ft,100,300,basic,,,,,'
    415             '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n'
    416             'CERT2,F1,D1,Master of Cheddar,ct_ft,400,700,cest,,,,,[]\r\n'
    417             'CERT3,F1,D2,Cert. of Rubbish,dp_pt,100,200,no,,,,,[]\r\n'
     414            'CERT1,F1,D1,Master of Cheese,ct_ft,100,300,basic,,,,,,'
     415            '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n'
     416            'CERT2,F1,D1,Master of Cheddar,ct_ft,400,700,cest,,,,,,[]\r\n'
     417            'CERT3,F1,D2,Cert. of Rubbish,dp_pt,100,200,no,,,,,,[]\r\n'
    418418            )
    419419        return
     
    426426            result,
    427427            'code,faculty_code,department_code,title,study_mode,start_level,'
    428             'end_level,application_category,'
     428            'end_level,application_category,ratio,'
    429429            'school_fee_1,school_fee_2,school_fee_3,school_fee_4,'
    430430            'users_with_local_roles\r\n'
    431             'CERT1,F1,D1,Master of Cheese,ct_ft,100,300,basic,,,,,'
    432             '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n'
    433             'CERT2,F1,D1,Master of Cheddar,ct_ft,400,700,cest,,,,,[]\r\n'
    434             'CERT3,F1,D2,Cert. of Rubbish,dp_pt,100,200,no,,,,,[]\r\n'
     431            'CERT1,F1,D1,Master of Cheese,ct_ft,100,300,basic,,,,,,'
     432            '"[{\'user_name\': u\'bob\', \'local_role\': u\'bobsrole\'}]"\r\n'
     433            'CERT2,F1,D1,Master of Cheddar,ct_ft,400,700,cest,,,,,,[]\r\n'
     434            'CERT3,F1,D2,Cert. of Rubbish,dp_pt,100,200,no,,,,,,[]\r\n'
    435435            )
    436436        return
Note: See TracChangeset for help on using the changeset viewer.