Changeset 9228 for main/waeup.kofa/trunk


Ignore:
Timestamp:
23 Sep 2012, 12:58:43 (12 years ago)
Author:
Henrik Bettermann
Message:

Export former_course 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

    r9128 r9228  
    109109    #: Fieldnames considered by this exporter
    110110    fields = ('code', 'faculty_code', 'department_code', 'title', 'credits',
    111               'passmark', 'semester', 'users_with_local_roles')
     111              'passmark', 'semester', 'users_with_local_roles', 'former_course')
    112112
    113113    #: The title under which this exporter will be displayed
  • main/waeup.kofa/trunk/src/waeup/kofa/university/tests/test_export.py

    r9130 r9228  
    268268            result,
    269269            'code,faculty_code,department_code,title,credits,'
    270             'passmark,semester,users_with_local_roles\r\n'
    271             'C1,F1,D1,Cheese Basics,0,40,1,[]\r\n'
     270            'passmark,semester,users_with_local_roles,former_course\r\n'
     271            'C1,F1,D1,Cheese Basics,0,40,1,[],0\r\n'
    272272            )
    273273        return
     
    280280            result,
    281281            'code,faculty_code,department_code,title,credits,passmark,'
    282             'semester,users_with_local_roles\r\n'
    283             'C1,F1,D1,Cheese Basics,0,40,1,[]\r\n'
    284             'C2,F1,D1,Advanced Cheese Making,0,40,1,[]\r\n'
     282            'semester,users_with_local_roles,former_course\r\n'
     283            'C1,F1,D1,Cheese Basics,0,40,1,[],0\r\n'
     284            'C2,F1,D1,Advanced Cheese Making,0,40,1,[],0\r\n'
    285285            )
    286286        return
     
    294294            result,
    295295            'code,faculty_code,department_code,title,credits,passmark,'
    296             'semester,users_with_local_roles\r\n'
    297             'C1,F1,D1,Cheese Basics,0,40,1,[]\r\n'
    298             'C2,F1,D1,Advanced Cheese Making,0,40,1,[]\r\n'
    299             'C3,F1,D2,Selling Cheese,0,40,1,[]\r\n'
     296            'semester,users_with_local_roles,former_course\r\n'
     297            'C1,F1,D1,Cheese Basics,0,40,1,[],0\r\n'
     298            'C2,F1,D1,Advanced Cheese Making,0,40,1,[],0\r\n'
     299            'C3,F1,D2,Selling Cheese,0,40,1,[],0\r\n'
    300300            )
    301301        return
     
    308308            result,
    309309            'code,faculty_code,department_code,title,credits,passmark,'
    310             'semester,users_with_local_roles\r\n'
    311             'C1,F1,D1,Cheese Basics,0,40,1,[]\r\n'
    312             'C2,F1,D1,Advanced Cheese Making,0,40,1,[]\r\n'
    313             'C3,F1,D2,Selling Cheese,0,40,1,[]\r\n'
     310            'semester,users_with_local_roles,former_course\r\n'
     311            'C1,F1,D1,Cheese Basics,0,40,1,[],0\r\n'
     312            'C2,F1,D1,Advanced Cheese Making,0,40,1,[],0\r\n'
     313            'C3,F1,D2,Selling Cheese,0,40,1,[],0\r\n'
    314314            )
    315315        return
Note: See TracChangeset for help on using the changeset viewer.