Changeset 16006


Ignore:
Timestamp:
16 Feb 2020, 09:52:23 (5 years ago)
Author:
Henrik Bettermann
Message:

Sort export of "Data for Lecturer" by fcode, dcode and matric_number.

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r15964 r16006  
    689689    grok.context(IApplicant)
    690690    grok.name('base')
     691
    691692    @property
    692693    def form_fields(self):
  • main/waeup.kofa/trunk/src/waeup/kofa/students/export.py

    r15996 r16006  
    555555
    556556    def filter_func(self, x, **kw):
    557         return get_tickets_for_lecturer(x, **kw)
     557        tickets = get_tickets_for_lecturer(x, **kw)
     558        return sorted([ticket for ticket in tickets],
     559            key=lambda ticket: str(ticket.fcode) + str(ticket.dcode)
     560                + str(ticket.student.matric_number))
    558561
    559562    def mangle_value(self, value, name, context=None):
Note: See TracChangeset for help on using the changeset viewer.