Changeset 9813


Ignore:
Timestamp:
20 Dec 2012, 17:10:40 (12 years ago)
Author:
Henrik Bettermann
Message:

ExportJobContainerOverview? and ExportJobContainerDownload? can be used for all local exporter.

File:
1 edited

Legend:

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

    r9810 r9813  
    5757    VirtualDepartmentExportJobContainer,)
    5858from waeup.kofa.university.vocabularies import course_levels
     59from waeup.kofa.utils.batching import VirtualExportJobContainer
    5960from waeup.kofa.utils.helpers import get_current_principal, to_timezone
    6061from waeup.kofa.widgets.restwidget import ReSTDisplayWidget
     
    26312632        return hitlist
    26322633
    2633 class DepartmentExportJobContainerOverview(KofaPage):
     2634class ExportJobContainerOverview(KofaPage):
    26342635    """Page that filters and lists students.
    26352636    """
    2636     grok.context(VirtualDepartmentExportJobContainer)
     2637    grok.context(VirtualExportJobContainer)
    26372638    grok.require('waeup.showStudents')
    26382639    grok.name('index.html')
    26392640    grok.template('exportjobsindex')
    2640     label = _('Department Exports')
     2641    label = _('Student Data Exports')
    26412642    pnav = 1
    26422643
     
    26782679    grok.name('jobconfig')
    26792680    grok.template('exportjobsjobconfig')
    2680     label = _('Create New Export Job')
     2681    label = _('Create new export job')
    26812682    pnav = 1
    26822683
     
    27362737        return
    27372738
    2738 class DepartmentExportJobContainerDownload(grok.View):
     2739class ExportJobContainerDownload(grok.View):
    27392740    """Page that configures a students export job.
    27402741    """
    2741     grok.context(VirtualDepartmentExportJobContainer)
     2742    grok.context(VirtualExportJobContainer)
    27422743    grok.require('waeup.showStudents')
    27432744    grok.name('download')
     
    27552756                'students.csv',))
    27562757        return open(job.result, 'rb')
    2757         return
Note: See TracChangeset for help on using the changeset viewer.