Ignore:
Timestamp:
14 Aug 2026, 08:47:17 (3 months ago)
Author:
Henrik Bettermann
Message:

Add file upload viewlets.

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

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/browser.py

    r18298 r18299  
    193193    """ View to edit student clearance data by student
    194194    """
     195
     196    def dataNotComplete(self):
     197        """To be implemented in the customization package.
     198        """
     199        return False
     200
    195201    @property
    196202    def form_fields(self):
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/viewlets.py

    r18162 r18299  
    8585    """
    8686    grok.order(20)
    87     label = _(u' UTME (JAMB) Admission Letter')
    88     title = _(u' UTME (JAMB) Admission Letter')
     87    label = _(u'UTME (JAMB) Admission Letter')
     88    title = _(u'UTME (JAMB) Admission Letter')
    8989    download_name = u'jamb_admission'
    9090
    … …  
    9696    """
    9797    grok.order(19)
    98     label = _(u' UTME (JAMB) Admission Letter')
    99     title = _(u' UTME (JAMB) Admission Letter Scan')
     98    label = _(u'UTME (JAMB) Admission Letter')
     99    title = _(u'UTME (JAMB) Admission Letter Scan')
    100100    mus = 1024 * 250
    101101    download_name = u'jamb_admission'
    … …  
    106106    grok.name('jamb_admission')
    107107    download_name = u'jamb_admission'
     108
     109#  National Identification Number (NIN)
     110
     111class NINDisplay(StudentFileDisplay):
     112    """ National Identification Number (NIN) display viewlet.
     113    """
     114    grok.order(21)
     115    label = _(u'National Identification Number (NIN)')
     116    title = _(u'National Identification Number (NIN)')
     117    download_name = u'nin'
     118
     119class NINSlip(NINDisplay):
     120    grok.view(ExportPDFClearanceSlip)
     121
     122class NINUpload(StudentFileUpload):
     123    """National Identification Number (NIN) upload viewlet.
     124    """
     125    grok.order(21)
     126    label = _(u'National Identification Number (NIN)')
     127    title = _(u'National Identification Number (NIN)')
     128    mus = 1024 * 250
     129    download_name = u'nin'
     130
     131class NINImage(StudentImage):
     132    """Renders National Identification Number (NIN) scan.
     133    """
     134    grok.name('nin')
     135    download_name = u'nin'
Note: See TracChangeset for help on using the changeset viewer.