Changeset 14704 for main


Ignore:
Timestamp:
26 Jun 2017, 21:11:44 (8 years ago)
Author:
Henrik Bettermann
Message:

Add department column. Use different sort order.

File:
1 edited

Legend:

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

    r14703 r14704  
    949949
    950950    def data(self, session):
     951        #site = grok.getSite()
    951952        cat = queryUtility(ICatalog, name='coursetickets_catalog')
    952953        coursetickets = cat.searchResults(
     
    963964                   #_('Status'),
    964965                   #_('Course of\nStudies'),
     966                   _('Department'),
    965967                   _('Level'),
    966968                   _(' CA  '),
     
    970972                   ],]
    971973        sorted_tickets = sorted(editable_tickets,
    972             key=lambda ticket: ticket.student.certcode +
    973                 ticket.student.display_fullname + str(ticket.level))
     974            key=lambda ticket: ticket.student.faccode
     975                               + ticket.student.depcode
     976                               + ticket.student.matric_number)
    974977        no = 1
    975978        tickets = []
     
    989992                    passed += 1
    990993            fullname = textwrap.fill(ticket.student.display_fullname, 30)
     994            #deptitle = site['faculties'][ticket.student.faccode][
     995            #    ticket.student.depcode].longtitle
    991996            row = [no,
    992997                  ticket.student.matric_number,
     
    9951000                  #ticket.student.translated_state,
    9961001                  #ticket.student.certcode,
     1002                  ticket.student.faccode + ' / ' + ticket.student.depcode,
    9971003                  ticket.level,
    9981004                  ticket.ca,
Note: See TracChangeset for help on using the changeset viewer.