- Timestamp:
- 4 Feb 2017, 18:26:35 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students/reports
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/session_results_presentation.py
r14489 r14503 17 17 ## 18 18 19 import grok 20 from zope.component import getUtility 21 from waeup.kofa.interfaces import IKofaUtils 19 22 from waeup.kofa.students.reports.session_results_presentation import ( 20 23 SessionResultsPresentation, SessionResultsPresentationGenerator) … … 25 28 26 29 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 38 courses taught and examinations held this academic session. 39 40 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] 27 43 28 44 # note = """ -
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_session_results_presentation.py
r14425 r14503 41 41 42 42 def test_create_pdf(self): 43 self.certificate.degree = 'BA(FS)' 43 44 report = CustomSessionResultsPresentation('fac1', 'dep1', 'CERT1', 2010, 100) 44 45 result = report.create_pdf('JOB_ID')
Note: See TracChangeset for help on using the changeset viewer.