Ignore:
Timestamp:
6 Jan 2013, 21:43:17 (12 years ago)
Author:
Henrik Bettermann
Message:

Implement student data export configuration page.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
3 edited

Legend:

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

    r9833 r9835  
    26532653
    26542654class ExportJobContainerOverview(KofaPage):
    2655     """Page that filters and lists students.
     2655    """Page that lists active student data export jobs and provides links
     2656    to discard or download CSV files.
     2657
    26562658    """
    26572659    grok.context(VirtualExportJobContainer)
     
    26842686    label = _('Configure student data export')
    26852687    pnav = 1
     2688    redirect_target = ''
    26862689
    26872690    def _set_session_values(self):
     
    27402743                   ' current_session=%s, current_level=%s, study_mode=%s' % (
    27412744                   session, level, mode))
     2745        self.redirect(self.url(self.redirect_target))
    27422746        return
    27432747
    27442748class ExportJobContainerDownload(ExportCSVView):
    2745     """Page that configures a students export job.
     2749    """Page that downloads a students export csv file.
     2750
    27462751    """
    27472752    grok.context(VirtualExportJobContainer)
     
    27532758    """
    27542759    grok.context(IDataCenter)
    2755 
     2760    redirect_target = '@@export'
    27562761
    27572762class DepartmentExportJobContainerJobConfig(ExportJobContainerJobConfig):
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/exportjobsjobconfig.pt

    r9819 r9835  
    5050  <div class="input">
    5151  <input type="submit" name="START"  i18n:translate=""
    52     value="Create export now"
     52    value="Create CSV file"
    5353    class="btn primary" />
    5454  </div>
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r9830 r9835  
    27522752        self.browser.getControl(name="level").value = ['100']
    27532753        self.browser.getControl(name="mode").value = ['ug_ft']
    2754         self.browser.getControl("Create export now").click()
     2754        self.browser.getControl("Create CSV file").click()
    27552755
    27562756        # When the job is finished and we reload the page...
Note: See TracChangeset for help on using the changeset viewer.