Changeset 15621
- Timestamp:
- 30 Sep 2019, 06:58:01 (5 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r15620 r15621 26 26 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState 27 27 from urllib import urlencode 28 from reportlab.platypus import Paragraph 28 29 from zope.catalog.interfaces import ICatalog 29 30 from zope.component import queryUtility, getUtility, createObject … … 36 37 from waeup.kofa.accesscodes import invalidate_accesscode, get_access_code 37 38 from waeup.kofa.accesscodes.workflow import USED 39 from waeup.kofa.browser.pdf import ENTRY1_STYLE 38 40 from waeup.kofa.browser.breadcrumbs import Breadcrumb 39 41 from waeup.kofa.browser.interfaces import ICaptchaManager … … 3776 3778 str(value.student.matric_number)) 3777 3779 for ticket in ctlist: 3780 name = Paragraph(ticket.student.display_fullname, ENTRY1_STYLE) 3778 3781 row = [sn, 3779 3782 ticket.student.matric_number, 3780 ticket.student.display_fullname, # 47 * ' '3783 name, 3781 3784 ticket.level, 3782 3785 ticket.student.certcode, -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r15609 r15621 4588 4588 self.course.title = (u'Lorem ipsum dolor sit amet, consectetur adipisici, ' 4589 4589 u'sed eiusmod tempor incidunt ut labore et dolore') 4590 self.student.firstname = u'Emmanuella Woyengifigha Mercy Onosemudiana' 4591 self.student.lastname = u'OYAKEMIEGBEGHA' 4590 4592 self.login_as_lecturer() 4591 4593 pdf_url = '%s/attendance.pdf' % self.course_url -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r15618 r15621 1045 1045 pdf_data.append(Spacer(1, 20)) 1046 1046 colWidths = [None] * len(data[0][0]) 1047 colWidths[2] = 6*cm 1047 1048 pdf_data += [Table(data[0], colWidths=colWidths, style=CONTENT_STYLE, 1048 1049 repeatRows=1)]
Note: See TracChangeset for help on using the changeset viewer.