Ignore:
Timestamp:
5 Feb 2017, 20:12:54 (8 years ago)
Author:
Henrik Bettermann
Message:

Fix introduction.

File:
1 edited

Legend:

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

    r14503 r14508  
    3333        site = grok.getSite()
    3434        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
    38 courses taught and examinations held this academic session.
    39 
     35        if self.certcode == 'all':
     36            text = """I present to Senate, on behalf of the Faculty Board,
     37the results of courses taught and examinations held this academic session.
    4038The following candidate(s) have/have not satisfied the degree requirements
    41 of the Faculty and have/have not qualified for the award of a %s as stated below:
    42 """ % degrees_dict[certificate.degree]
     39of the Faculty and have/have not qualified for the award of an academic
     40degree as stated below:
     41"""
     42        else:
     43            certificate = site['faculties'][self.faccode][
     44                self.depcode].certificates[self.certcode]
     45            degree = degrees_dict.get(certificate.degree, '[undefined]')
     46            text = """I present to Senate, on behalf of the Faculty Board,
     47the results of courses taught and examinations held this academic session.
     48The following candidate(s) have/have not satisfied the degree requirements
     49of the Faculty and have/have not qualified for the award of a %s as stated
     50below:
     51""" % degree
     52        return text
    4353
    4454#    note = """
     
    5161    signatures = ['Head of Department', 'External Examiner', 'Dean of Faculty']
    5262
    53 class CustomSessionResultsPresentationGenerator(SessionResultsPresentationGenerator):
     63class CustomSessionResultsPresentationGenerator(
     64    SessionResultsPresentationGenerator):
    5465
    5566    def generate(self, site, faccode=None, depcode=None, certcode=None,
Note: See TracChangeset for help on using the changeset viewer.