~schooltool-owners/schooltool.peas/packaging

« back to all changes in this revision

Viewing changes to src/schooltool/peas/browser/report.py

  • Committer: Douglas Cerna
  • Date: 2014-06-17 02:21:09 UTC
  • mfrom: (9.1.10 schooltool.peas)
  • Revision ID: douglascerna@yahoo.com-20140617022109-2btm5talvlfbkg1x
* New release.
  - Fixed base filename for xls reports

Show diffs side-by-side

added added

removed removed

Lines of Context:
219
219
    def base_filename(self):
220
220
        month = self.month
221
221
        year = self.year
222
 
        return 'teacher_attendance_disaggregated_by_day_%d_%d.xls' % (
 
222
        return 'teacher_attendance_disaggregated_by_day_%d_%d' % (
223
223
            year, month)
224
224
 
225
225
    def export_report(self, wb):
399
399
    def base_filename(self):
400
400
        month = self.month
401
401
        year = self.year
402
 
        return 'teacher_attendance_disaggregated_by_week_%d_%d.xls' % (
 
402
        return 'teacher_attendance_disaggregated_by_week_%d_%d' % (
403
403
            year, month)
404
404
 
405
405
    def report_rows(self):
475
475
    def base_filename(self):
476
476
        month = self.month
477
477
        year = self.year
478
 
        return 'student_attendance_disaggregated_by_day_%d_%d.xls' % (
 
478
        return 'student_attendance_disaggregated_by_day_%d_%d' % (
479
479
            year, month)
480
480
 
481
481
    def print_report_rows(self, ws):
568
568
    def base_filename(self):
569
569
        month = self.month
570
570
        year = self.year
571
 
        return 'student_attendance_disaggregated_by_week_%d_%d.xls' % (
 
571
        return 'student_attendance_disaggregated_by_week_%d_%d' % (
572
572
            year, month)
573
573
 
574
574
    def report_rows(self):