Changeset 14508
- Timestamp:
- 5 Feb 2017, 20:12:54 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/session_results_presentation.py
r14503 r14508 33 33 site = grok.getSite() 34 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 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, 37 the results of courses taught and examinations held this academic session. 40 38 The 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] 39 of the Faculty and have/have not qualified for the award of an academic 40 degree 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, 47 the results of courses taught and examinations held this academic session. 48 The following candidate(s) have/have not satisfied the degree requirements 49 of the Faculty and have/have not qualified for the award of a %s as stated 50 below: 51 """ % degree 52 return text 43 53 44 54 # note = """ … … 51 61 signatures = ['Head of Department', 'External Examiner', 'Dean of Faculty'] 52 62 53 class CustomSessionResultsPresentationGenerator(SessionResultsPresentationGenerator): 63 class CustomSessionResultsPresentationGenerator( 64 SessionResultsPresentationGenerator): 54 65 55 66 def generate(self, site, faccode=None, depcode=None, certcode=None,
Note: See TracChangeset for help on using the changeset viewer.