Changeset 15624


Ignore:
Timestamp:
30 Sep 2019, 10:34:21 (5 years ago)
Author:
Henrik Bettermann
Message:

In all tests the attendance sheet looks nice.

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

Legend:

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

    r15623 r15624  
    2626from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
    2727from urllib import urlencode
     28from reportlab.platypus import Paragraph
    2829from zope.catalog.interfaces import ICatalog
    2930from zope.component import queryUtility, getUtility, createObject
     
    3637from waeup.kofa.accesscodes import invalidate_accesscode, get_access_code
    3738from waeup.kofa.accesscodes.workflow import USED
     39from waeup.kofa.browser.pdf import ENTRY1_STYLE
    3840from waeup.kofa.browser.breadcrumbs import Breadcrumb
    3941from waeup.kofa.browser.interfaces import ICaptchaManager
     
    37763778                                          str(value.student.matric_number))
    37773779        for ticket in ctlist:
     3780            name = Paragraph(ticket.student.display_fullname, ENTRY1_STYLE)
    37783781            row = [sn,
    37793782                  ticket.student.matric_number,
    3780                   47 * ' ', # ticket.student.display_fullname,
     3783                  name,
    37813784                  ticket.level,
    37823785                  ticket.student.certcode,
    3783                   None,
     3786                  20 * ' ',
    37843787                  27 * ' ',
    37853788                  ]
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r15621 r15624  
    45904590        self.student.firstname = u'Emmanuella Woyengifigha Mercy Onosemudiana'
    45914591        self.student.lastname = u'OYAKEMIEGBEGHA'
     4592        self.student.matric_number = u'hdk7gd62i872z27zt27ge'
    45924593        self.login_as_lecturer()
    45934594        pdf_url = '%s/attendance.pdf' % self.course_url
Note: See TracChangeset for help on using the changeset viewer.