Changeset 13913


Ignore:
Timestamp:
11 Jun 2016, 09:21:50 (8 years ago)
Author:
uli
Message:

Move viewlets to students module.

I do not think we want imports from w.k.students in
w.k.browser.

Location:
main/waeup.kofa/branches/uli-scores-upload/src/waeup/kofa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/uli-scores-upload/src/waeup/kofa/browser/viewlets.py

    r13908 r13913  
    2727    DepartmentPage, CoursePage, CertificatePage, CertificateCoursePage,
    2828    UsersContainerPage, UserManageFormPage, DatacenterImportStep1)
    29 from waeup.kofa.students.browser import EditScoresPage
    3029from waeup.kofa.browser.interfaces import (
    3130    IFacultiesContainer, IFaculty, IDepartment, ICourse, ICertificate,
     
    555554    grok.order(4)
    556555
    557 class DownloadCSVFileActionButton(ManageActionButton):
    558     """ 'Download csv file' button for courses.
    559     """
    560     grok.context(ICourse)
    561     grok.view(EditScoresPage)
    562     grok.name('downloadcsv')
    563     grok.require('waeup.editScores')
    564     icon = 'actionicon_down.png'
    565     text = _('Download editable tickets')
    566     target = 'download_scores'
    567     grok.order(1)
    568 
    569 class DownloadTicketOverviewActionButton(ManageActionButton):
    570     """ 'Download ticket overview' button for courses.
    571     """
    572     grok.context(ICourse)
    573     grok.view(EditScoresPage)
    574     grok.name('coursetickets')
    575     grok.require('waeup.editScores')
    576     icon = 'actionicon_pdf.png'
    577     text = _('Download pdf file')
    578     target = 'coursetickets.pdf'
    579     grok.order(2)
    580556
    581557class ManageCertificateActionButton(ManageActionButton):
  • main/waeup.kofa/branches/uli-scores-upload/src/waeup/kofa/students/viewlets.py

    r13610 r13913  
    3636    AccommodationManageFormPage, BedTicketDisplayFormPage,
    3737    StudentClearanceEditFormPage, StudentPersonalEditFormPage,
    38     PaymentsManageFormPage, StudyCourseTranscriptPage)
     38    PaymentsManageFormPage, StudyCourseTranscriptPage, EditScoresPage)
    3939from waeup.kofa.students.interfaces import (
    4040    IStudentsContainer, IStudent, IStudentStudyCourse, IStudentAccommodation,
     
    4242    IStudentPaymentsContainer, IStudentsUtils
    4343    )
     44from waeup.kofa.university.interfaces import ICourse
    4445
    4546grok.context(IKofaObject) # Make IKofaObject the default context
     
    803804            ]
    804805        return targets
     806
     807class DownloadCSVFileActionButton(ManageActionButton):
     808    """ 'Download csv file' button for courses.
     809    """
     810    grok.context(ICourse)
     811    grok.view(EditScoresPage)
     812    grok.name('downloadcsv')
     813    grok.require('waeup.editScores')
     814    icon = 'actionicon_down.png'
     815    text = _('Download editable tickets')
     816    target = 'download_scores'
     817    grok.order(1)
     818
     819class DownloadTicketOverviewActionButton(ManageActionButton):
     820    """ 'Download ticket overview' button for courses.
     821    """
     822    grok.context(ICourse)
     823    grok.view(EditScoresPage)
     824    grok.name('coursetickets')
     825    grok.require('waeup.editScores')
     826    icon = 'actionicon_pdf.png'
     827    text = _('Download pdf file')
     828    target = 'coursetickets.pdf'
     829    grok.order(2)
Note: See TracChangeset for help on using the changeset viewer.