Ignore:
Timestamp:
28 Aug 2013, 09:43:00 (11 years ago)
Author:
Henrik Bettermann
Message:

Rename StudentsReport? to StudentStatisticsReport?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/student_reports.py

    r10547 r10550  
    2626from waeup.kofa.reports import IReport
    2727
    28 class IStudentsReport(IReport):
     28class IStudentStatisticsReport(IReport):
    2929
    3030    session = Attribute('Session to report')
     
    118118    ]
    119119
    120 @implementer(IStudentsReport)
    121 class StudentsReport(Report):
     120@implementer(IStudentStatisticsReport)
     121class StudentStatisticsReport(Report):
    122122    data = None
    123123    session = None
     
    125125
    126126    def __init__(self, session, mode, author='System'):
    127         super(StudentsReport, self).__init__(
     127        super(StudentStatisticsReport, self).__init__(
    128128            args=[session, mode], kwargs={'author':author})
    129129        self.session = academic_sessions_vocab.getTerm(session).title
     
    150150
    151151@implementer(IReportGenerator)
    152 class StudentsReportGenerator(grok.GlobalUtility):
     152class StudentStatisticsReportGenerator(grok.GlobalUtility):
    153153
    154154    title = _('Students')
     
    156156
    157157    def generate(self, site, session=None, mode=None, author=None):
    158         result = StudentsReport(session=session, mode=mode, author=author)
     158        result = StudentStatisticsReport(session=session, mode=mode, author=author)
    159159        return result
    160160
     
    168168from waeup.kofa.reports import get_generators
    169169grok.templatedir('browser_templates')
    170 class StudentsReportGeneratorPage(KofaPage):
    171 
    172     grok.context(StudentsReportGenerator)
     170class StudentStatisticsReportGeneratorPage(KofaPage):
     171
     172    grok.context(StudentStatisticsReportGenerator)
    173173    grok.name('index.html')
    174174    grok.require('waeup.manageReports')
     
    215215        return
    216216
    217 class StudentsReportPDFView(grok.View):
    218 
    219     grok.context(IStudentsReport)
     217class StudentStatisticsReportPDFView(grok.View):
     218
     219    grok.context(IStudentStatisticsReport)
    220220    grok.name('pdf')
    221221    grok.require('waeup.Public')
    222222
    223223    def render(self):
    224         filename = 'StudentsReport_%s_%s_%s.pdf' % (
     224        filename = 'StudentStatisticsReport_%s_%s_%s.pdf' % (
    225225            self.context.session, self.context.mode,
    226226            self.context.creation_dt_string)
Note: See TracChangeset for help on using the changeset viewer.