Ignore:
Timestamp:
31 Jan 2017, 14:53:50 (8 years ago)
Author:
Henrik Bettermann
Message:

Show correct level title.

File:
1 edited

Legend:

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

    r14479 r14482  
    193193        self.portal_language = getUtility(IKofaUtils).PORTAL_LANGUAGE
    194194        self.session = academic_sessions_vocab.getTerm(session).title
    195         self.level = translate(self.studylevelsource.getTitle(None, int(level)),
    196             'waeup.kofa', target_language=self.portal_language)
    197195        self.levelcode = level
    198196        self.sessioncode = session
     
    206204                _('All Certificates'), 'waeup.kofa',
    207205                target_language=self.portal_language)
     206            self.level = translate(
     207                self.studylevelsource.getTitle(None, int(level)),
     208                'waeup.kofa', target_language=self.portal_language)
    208209        else:
    209             self.certtitle = site['faculties'][faccode][
    210                 depcode].certificates[certcode].longtitle
     210            certificate = site[
     211                'faculties'][faccode][depcode].certificates[certcode]
     212            self.certtitle = certificate.longtitle
     213            self.level = translate(
     214                self.studylevelsource.getTitle(certificate, int(level)),
     215                'waeup.kofa', target_language=self.portal_language)
    211216        self.author = author
    212217        self.creation_dt_string = self.creation_dt.astimezone(
Note: See TracChangeset for help on using the changeset viewer.