Ignore:
Timestamp:
28 Feb 2019, 06:46:07 (6 years ago)
Author:
Henrik Bettermann
Message:

Add state column.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/export.py

    r14701 r15336  
    6868    fields = tuple(sorted(iface_names(ICustomCourseTicket) +
    6969        ['level', 'code', 'level_session'])) + ('student_id',
    70         'certcode', 'display_fullname', 'matric_number')
     70        'certcode', 'display_fullname', 'matric_number', 'state')
    7171
    7272    def mangle_value(self, value, name, context=None):
     
    7575        if context is not None:
    7676            student = context.student
    77             if name in ('student_id', 'display_fullname', 'matric_number') \
     77            if name in ('student_id', 'display_fullname', 'matric_number', 'state') \
    7878                and student is not None:
    7979                value = getattr(student, name, None)
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_export.py

    r15226 r15336  
    194194            'automatic,ca,carry_over,code,course_category,credits,dcode,fcode,imported_ts,level,level_session,'
    195195            'mandatory,outstanding,passmark,score,semester,ticket_session,title,student_id,certcode,'
    196             'display_fullname,matric_number\r\n'
     196            'display_fullname,matric_number,state\r\n'
    197197            '1,,1,CRS1,,100,DEP1,FAC1,,100,2012,0,0,100,,2,,Course 1,A111111,CERT1,'
    198             '"TESTER, Anna M.",234\r\n'
     198            '"TESTER, Anna M.",234,created\r\n'
    199199            )
    200200        return
Note: See TracChangeset for help on using the changeset viewer.