Ignore:
Timestamp:
26 Mar 2018, 18:37:38 (7 years ago)
Author:
Henrik Bettermann
Message:

Further customizations of the SessionResultsPresentation?.

File:
1 edited

Legend:

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

    r14972 r14978  
    3737        plurals = ''
    3838        num_students = sum([len(i) for i in self.data])
     39        site = grok.getSite()
     40        certificate = site[
     41            'faculties'][self.faccode][self.depcode].certificates[self.certcode]
     42        study_mode = getattr(certificate, 'study_mode', None)
    3943        if num_students == 0:
    4044            return ''
     
    5458        if self.faccode == 'FBM':
    5559            board = 'College Academic Board'
     60        elif study_mode and study_mode.startswith('dp'):
     61            board = 'Institute Board'
    5662        else:
    5763            board = 'Faculty Board'
Note: See TracChangeset for help on using the changeset viewer.