Changeset 14610 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 8 Mar 2017, 11:58:40 (8 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students/reports
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py
r14609 r14610 132 132 def title(self): 133 133 return translate(_('Level Report')) 134 135 @property 136 def right_footer(self): 137 return self.title + ' - %s -' % self.session 134 138 135 139 def _excluded(self, level_obj): … … 269 273 pdf_data += [ 270 274 Table(table_data, style=TABLE_STYLE, colWidths=col_widths)] 271 doc_title = self.title272 275 273 276 pdf_data.append(Spacer(1, 40)) … … 278 281 279 282 pdf = creator.create_pdf( 280 pdf_data, None, doc_title, self.author, 281 doc_title + ' - %s -' % self.session, 282 note = self.note 283 pdf_data, None, self.title, self.author, 284 self.right_footer, note = self.note 283 285 ) 284 286 return pdf -
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/raw_score_report.py
r14607 r14610 113 113 depcode = None 114 114 certcode = None 115 title = translate(_('Raw Score Report'))116 117 115 note = "" 118 116 signatures = None 117 118 @property 119 def title(self): 120 return translate(_('Raw Score Report')) 121 122 @property 123 def right_footer(self): 124 return self.title + ' - %s -' % self.session 119 125 120 126 def _excluded(self, level_obj): … … 260 266 style=TABLE_STYLE, 261 267 colWidths=col_widths)] 262 doc_title = self.title263 268 pdf_data.append(Spacer(1, 20)) 264 269 if self.signatures: … … 268 273 269 274 pdf = creator.create_pdf( 270 pdf_data, None, doc_title, self.author, 271 doc_title + ' - %s -' % self.session, 272 note=self.note 275 pdf_data, None, self.title, self.author, 276 self.right_footer, note=self.note 273 277 ) 274 278 return pdf -
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/session_results_presentation.py
r14607 r14610 73 73 signatures = None 74 74 introduction = '' 75 title = translate(_('Presentation of Session Results')) 75 76 @property 77 def title(self): 78 return translate(_('Presentation of Session Results')) 79 80 @property 81 def right_footer(self): 82 return self.title + ' - %s -' % self.session 76 83 77 84 note = None … … 243 250 pdf_data += [Table(table_data, style=SUMMARY_STYLE, hAlign='LEFT')] 244 251 245 doc_title = self.title246 252 pdf_data.append(Spacer(1, 40)) 247 253 if self.signatures: … … 250 256 251 257 pdf = creator.create_pdf( 252 pdf_data, None, doc_title, self.author, 253 doc_title + ' - %s -' % self.session, 254 note = self.note 258 pdf_data, None, self.title, self.author, 259 self.right_footer, note = self.note 255 260 ) 256 261 return pdf -
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/student_payment_statistics.py
r14607 r14610 196 196 title = translate(_('Student Payment Statistics')) 197 197 198 @property 199 def title(self): 200 return translate(_('Student Payment Statistics')) 201 198 202 def __init__(self, session, mode, level, entry_session, p_session, 199 203 breakdown, author='System'): … … 261 265 pdf_data += [ 262 266 Table(table_data, style=TABLE_STYLE, colWidths=col_widths)] 263 doc_title = self.title264 267 right_footer = translate( 265 268 _('${a} Student Payments - ${b} -', 266 269 mapping = {'a':self.mode, 'b':self.session})) 267 270 pdf = creator.create_pdf( 268 pdf_data, None, doc_title, self.author, right_footer271 pdf_data, None, self.title, self.author, right_footer 269 272 ) 270 273 return pdf -
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/student_statistics.py
r14607 r14610 146 146 title = translate(_('Student Statistics')) 147 147 148 @property 149 def title(self): 150 return translate(_('Student Statistics')) 151 148 152 def __init__(self, session, mode, level, breakdown, author='System'): 149 153 super(StudentStatisticsReport, self).__init__( … … 187 191 pdf_data += [ 188 192 Table(table_data, style=TABLE_STYLE, colWidths=col_widths)] 189 doc_title = self.title190 193 right_footer = translate( 191 194 _('${a} Students - ${b} -', 192 195 mapping = {'a':self.mode, 'b':self.session})) 193 196 pdf = creator.create_pdf( 194 pdf_data, None, doc_title, self.author, right_footer197 pdf_data, None, self.title, self.author, right_footer 195 198 ) 196 199 return pdf
Note: See TracChangeset for help on using the changeset viewer.