Ignore:
Timestamp:
8 Jun 2016, 15:48:51 (9 years ago)
Author:
Henrik Bettermann
Message:

Add DownloadScoresView which is for lecturers only. Remove
waeup.showStudents from Lecturer role. Adjust
DataForLecturerExporter. Only editable course tickets are being
exported.

File:
1 edited

Legend:

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

    r13813 r13894  
    2727    DepartmentPage, CoursePage, CertificatePage, CertificateCoursePage,
    2828    UsersContainerPage, UserManageFormPage, DatacenterImportStep1)
     29from waeup.kofa.students.browser import EditScoresPage
    2930from waeup.kofa.browser.interfaces import (
    3031    IFacultiesContainer, IFaculty, IDepartment, ICourse, ICertificate,
     
    537538    target = 'edit_scores'
    538539    grok.order(4)
     540
     541class DownloadCSVFileActionButton(ManageActionButton):
     542    """ 'Download csv file' button for courses.
     543    """
     544    grok.context(ICourse)
     545    grok.view(EditScoresPage)
     546    grok.name('downloadcsv')
     547    grok.require('waeup.editScores')
     548    icon = 'actionicon_down.png'
     549    text = _('Download editable tickets')
     550    target = 'download_scores'
     551    grok.order(1)
    539552
    540553class ManageCertificateActionButton(ManageActionButton):
Note: See TracChangeset for help on using the changeset viewer.