Changeset 15650


Ignore:
Timestamp:
8 Oct 2019, 15:50:29 (5 years ago)
Author:
Henrik Bettermann
Message:

Add signature file viewlet components.

File:
1 edited

Legend:

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

    r15563 r15650  
    2929
    3030from kofacustom.nigeria.interfaces import MessageFactory as _
     31
     32# Signature
     33
     34class SignatureDisplay(StudentFileDisplay):
     35    """Signature display viewlet.
     36    """
     37    grok.order(2)
     38    label = _(u'Signature')
     39    title = _(u'Signature Scan')
     40    download_name = u'signature'
     41
     42class SignatureSlip(SignatureDisplay):
     43    grok.view(ExportPDFClearanceSlip)
     44
     45class SignatureUpload(StudentFileUpload):
     46    """Signature upload viewlet.
     47    """
     48    grok.order(2)
     49    label = _(u'Signature')
     50    title = _(u'Signature Scan')
     51    mus = 1024 * 250
     52    download_name = u'signature'
     53    tab_redirect = '?tab2'
     54
     55class SignatureImage(StudentImage):
     56    """Renders acceptance letter scan.
     57    """
     58    grok.name('signature')
     59    download_name = u'signature'
     60
Note: See TracChangeset for help on using the changeset viewer.