Changeset 14374 for main/waeup.aaue/trunk/src/waeup/aaue
- Timestamp:
- 6 Jan 2017, 22:42:07 (8 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students/reports
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/raw_score_report.py
r14272 r14374 216 216 faccode, depcode, session, self.levelcode, course_codes) 217 217 218 def create_pdf(self ):218 def create_pdf(self, job_id): 219 219 creator = getUtility(IPDFCreator, name='A3landscape') 220 220 table_data = dict() … … 223 223 self.data[level], self.course_codes[level]) 224 224 col_widths = [1*cm, 4*cm, 5*cm] + [1*cm] * len(self.course_codes) 225 pdf_data = [Paragraph('<b>%s</b>' % self.creation_dt_string, 225 pdf_data = [Paragraph('<b>%s - Report %s</b>' 226 % (self.creation_dt_string, job_id), 226 227 STYLE["Normal"]), 227 228 Spacer(1, 12),] -
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/student_level_statistics.py
r13970 r14374 174 174 self.data = get_student_stats(session, mode, breakdown) 175 175 176 def create_pdf(self ):176 def create_pdf(self, job_id): 177 177 creator = getUtility(IPDFCreator, name='landscape') 178 178 table_data = tbl_data_to_table(*self.data) 179 179 col_widths = [None,] + [1.8*cm] * (len(self.data[1]) - 1)+ [2.0*cm] + [None,] 180 pdf_data = [Paragraph('<b>%s</b>' % self.creation_dt_string, 180 pdf_data = [Paragraph('<b>%s - Report %s</b>' 181 % (self.creation_dt_string, job_id), 181 182 STYLE["Normal"]), 182 183 Spacer(1, 12),] -
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_level_report.py
r14370 r14374 36 36 self.student['studycourse']['100']['Course1'].ca = 0 37 37 report = CustomLevelReport('fac1', 'dep1', 2010, 100) 38 result = report.create_pdf( )38 result = report.create_pdf('JOB_ID') 39 39 self.assertTrue(result.startswith('%PDF-')) 40 40 path = os.path.join(samples_dir(), 'level_report.pdf') -
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_raw_score_report.py
r14132 r14374 67 67 self.student['studycourse']['200']['Course2'] = ticket 68 68 report = RawScoreReport('fac1', 'dep1', 2011, 200) 69 result = report.create_pdf( )69 result = report.create_pdf('JOB_ID') 70 70 self.assertTrue(result.startswith('%PDF-')) 71 71 path = os.path.join(samples_dir(), 'raw_score_report.pdf') -
main/waeup.aaue/trunk/src/waeup/aaue/students/reports/tests/test_student_level_statistics.py
r13963 r14374 102 102 self.student['studycourse'].current_level = 220 103 103 report = StudentLevelStatisticsReport(2010, 'Undergraduate Full-Time', 'depcode') 104 result = report.create_pdf( )104 result = report.create_pdf('JOB_ID') 105 105 self.assertTrue(result.startswith('%PDF-')) 106 106 path = os.path.join(samples_dir(), 'student_level_statistics.pdf')
Note: See TracChangeset for help on using the changeset viewer.