Ignore:
Timestamp:
21 Jun 2016, 06:30:07 (8 years ago)
Author:
Henrik Bettermann
Message:

Resolve ticket #228:

  1. The first column should be the Serial number.
  2. Under the column for Full name, surname should come first in capital letter with a coma before the other names.
  3. The heading for ‘score’ column should be renamed ‘exam score’.
  4. CA column should come before exam score column
  5. The column for Total should be added after exam score column.
  6. Extra column for letter grade should come after the ‘total’ column.
File:
1 edited

Legend:

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

    r13946 r13963  
    649649            code=(self.context.code, self.context.code)
    650650            )
    651         header = [[_('Matric No.'),
     651        header = [[_(''),
     652                   _('Matric No.'),
    652653                   _('Reg. No.'),
    653654                   _('Fullname'),
    654655                   _('Status'),
    655                    _('Course of Studies'),
     656                   _('Course of\nStudies'),
    656657                   _('Level'),
    657                    _('Score'),
    658                    _('CA') ],]
     658                   _('Exam\nScore'),
     659                   _('CA'),
     660                   _('Total'),
     661                   _('Grade'),
     662                   ],]
    659663        tickets = []
     664        no = 1
    660665        for ticket in list(coursetickets):
    661             row = [ticket.student.matric_number,
     666            if None in (ticket.score, ticket.ca):
     667                total = 'n/a'
     668            else:
     669                total = ticket.score + ticket.ca
     670            row = [no,
     671                  ticket.student.matric_number,
    662672                  ticket.student.reg_number,
    663673                  ticket.student.display_fullname,
     
    665675                  ticket.student.certcode,
    666676                  ticket.level,
     677                  ticket.ca,
    667678                  ticket.score,
    668                   ticket.ca]
     679                  total,
     680                  ticket.grade,
     681                  ]
    669682            tickets.append(row)
     683            no += 1
    670684        return header + sorted(tickets, key=lambda value: value[0])
    671685
Note: See TracChangeset for help on using the changeset viewer.