Ignore:
Timestamp:
9 Oct 2019, 10:10:23 (5 years ago)
Author:
Henrik Bettermann
Message:

Replace file viewlets.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py

    r15653 r15654  
    3232
    3333    SKIP_UPLOAD_VIEWLETS = (
    34         'acceptanceletterupload',
     34        'acceptanceletterupload', 'certificateupload'
    3535        )
    3636    # Maximum size of upload files in kB
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/viewlets.py

    r15653 r15654  
    5858    download_name = u'signature'
    5959
     60# JAMB Result
     61
     62class JAMBResultDisplay(StudentFileDisplay):
     63    """JAMB Result display viewlet.
     64    """
     65    grok.order(9)
     66    label = _(u'JAMB Result')
     67    title = _(u'JAMB Result')
     68    download_name = u'jamb'
     69
     70class JAMBResultSlip(JAMBResultDisplay):
     71    grok.view(ExportPDFClearanceSlip)
     72
     73class JAMBResultUpload(StudentFileUpload):
     74    """JAMB Result upload viewlet.
     75    """
     76    grok.order(9)
     77    label = _(u'JAMB Result')
     78    title = _(u'JAMB Result Scan')
     79    download_name = u'jamb'
     80
     81class JAMBResultImage(StudentImage):
     82    """Renders JAMB Result scan.
     83    """
     84    grok.name('jamb')
     85    download_name = u'jamb'
     86
Note: See TracChangeset for help on using the changeset viewer.