Ignore:
Timestamp:
24 Jun 2017, 09:58:51 (8 years ago)
Author:
Henrik Bettermann
Message:

Change page orientation of CustomExportPDFScoresSlip. Remove columns.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/locales/en/LC_MESSAGES/waeup.kofa.po

    r14614 r14703  
    207207msgid "Required"
    208208msgstr "Mandatory"
     209
     210#. Default: ""
     211#: waeup/kofa/students/utils.py:997
     212msgid "${a} (${b}) - Academic Session ${d}"
     213msgstr ""
     214"${a} (${b})\n"
     215"Academic Session ${d}"
  • main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py

    r14700 r14703  
    959959        header = [[_(''),
    960960                   _('Matric No.'),
    961                    _('Reg. No.'),
    962                    _('Fullname'),
    963                    _('Status'),
    964                    _('Course of\nStudies'),
     961                   #_('Reg. No.'),
     962                   #_('Fullname'),
     963                   #_('Status'),
     964                   #_('Course of\nStudies'),
    965965                   _('Level'),
    966966                   _(' CA  '),
     
    991991            row = [no,
    992992                  ticket.student.matric_number,
    993                   ticket.student.reg_number,
    994                   fullname,
    995                   ticket.student.translated_state,
    996                   ticket.student.certcode,
     993                  #ticket.student.reg_number,
     994                  #fullname,
     995                  #ticket.student.translated_state,
     996                  #ticket.student.certcode,
    997997                  ticket.level,
    998998                  ticket.ca,
     
    10111011        return header + tickets, [
    10121012            total, passed, passed_perc, failed, failed_perc]
     1013
     1014    def render(self):
     1015        session = grok.getSite()['configuration'].current_academic_session
     1016        lecturers = [i['user_title'] for i in self.getUsersWithLocalRoles()
     1017                     if i['local_role'] == 'waeup.local.Lecturer']
     1018        lecturers =  ', '.join(lecturers)
     1019        students_utils = getUtility(IStudentsUtils)
     1020        # only orientation is different
     1021        return students_utils.renderPDFCourseticketsOverview(
     1022            self, session, self.data(session), lecturers, '')
    10131023
    10141024class DownloadPreviousSessionScoresView(DownloadScoresView):
Note: See TracChangeset for help on using the changeset viewer.