Ignore:
Timestamp:
4 Feb 2017, 18:26:35 (8 years ago)
Author:
Henrik Bettermann
Message:

Customize introduction.

File:
1 edited

Legend:

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

    r14489 r14503  
    1717##
    1818
     19import grok
     20from zope.component import getUtility
     21from waeup.kofa.interfaces import IKofaUtils
    1922from waeup.kofa.students.reports.session_results_presentation import (
    2023    SessionResultsPresentation, SessionResultsPresentationGenerator)
     
    2528
    2629    pdfcreator = ''
     30
     31    @property
     32    def introduction (self):
     33        site = grok.getSite()
     34        degrees_dict = getUtility(IKofaUtils).DEGREES_DICT
     35        certificate = site[
     36            'faculties'][self.faccode][self.depcode].certificates[self.certcode]
     37        return """I present to Senate, on behalf of the Faculty Board, the results of
     38courses taught and examinations held this academic session.
     39
     40The following candidate(s) have/have not satisfied the degree requirements
     41of the Faculty and have/have not qualified for the award of a %s as stated below:
     42""" % degrees_dict[certificate.degree]
    2743
    2844#    note = """
Note: See TracChangeset for help on using the changeset viewer.