Ignore:
Timestamp:
1 Feb 2017, 09:40:28 (8 years ago)
Author:
Henrik Bettermann
Message:

Customize signatures.

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

Legend:

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

    r14425 r14489  
    3131#"""
    3232
     33    signatures = [
     34        'Head of Department', 'Dean of Faculty']
     35
    3336class LevelReportGenerator(LevelReportGenerator):
    3437
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/raw_score_report.py

    r14483 r14489  
    183183#</font>
    184184#"""
     185
     186    signatures = [
     187        translate(_('Head of Department')),
     188        translate(_('Dean of Faculty'))]
    185189
    186190    def __init__(self, faccode, depcode, certcode, session, level,
     
    260264        doc_title = translate(_('Raw Score Report'))
    261265        pdf_data.append(Spacer(1, 40))
    262         signatures = [
    263             translate(_('Head of Department')),
    264             translate(_('Dean of Faculty'))]
    265         signaturetables = get_signature_tables(signatures, landscape=True)
    266         pdf_data.append(signaturetables[0])
     266        if self.signatures:
     267            signaturetables = get_signature_tables(
     268                self.signatures, landscape=True)
     269            pdf_data.append(signaturetables[0])
    267270
    268271        pdf = creator.create_pdf(
  • main/waeup.aaue/trunk/src/waeup/aaue/students/reports/session_results_presentation.py

    r14445 r14489  
    3333#"""
    3434
     35    signatures = ['Head of Department', 'External Examiner', 'Dean of Faculty']
     36
    3537class CustomSessionResultsPresentationGenerator(SessionResultsPresentationGenerator):
    3638
Note: See TracChangeset for help on using the changeset viewer.