Ignore:
Timestamp:
12 Jan 2015, 11:11:25 (10 years ago)
Author:
Henrik Bettermann
Message:

Adjust to previous modifications in waeup.kofa.

File:
1 edited

Legend:

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

    r12422 r12449  
    2121from waeup.kofa.students.interfaces import IStudentsUtils
    2222from waeup.kofa.students.fileviewlets import (
    23     FileDisplay, FileUpload, Image)
     23    StudentFileDisplay, StudentFileUpload, StudentImage)
    2424from waeup.kofa.students.browser import ExportPDFClearanceSlipPage
    2525
     
    3737# Acceptance Letter
    3838
    39 class AcceptanceLetterDisplay(FileDisplay):
     39class AcceptanceLetterDisplay(StudentFileDisplay):
    4040    """Acceptance Letter display viewlet.
    4141    """
     
    4848    grok.view(ExportPDFClearanceSlipPage)
    4949
    50 class AcceptanceLetterUpload(FileUpload):
     50class AcceptanceLetterUpload(StudentFileUpload):
    5151    """AcceptanceLetter upload viewlet.
    5252    """
     
    5858    tab_redirect = '?tab2'
    5959
    60 class AcceptanceLetterImage(Image):
     60class AcceptanceLetterImage(StudentImage):
    6161    """Renders acceptance letter scan.
    6262    """
     
    6666# LGA Identification
    6767
    68 class LGAIdentificationDisplay(FileDisplay):
     68class LGAIdentificationDisplay(StudentFileDisplay):
    6969    """LGA Identification display viewlet.
    7070    """
     
    7777    grok.view(ExportPDFClearanceSlipPage)
    7878
    79 class LGAIdentificationUpload(FileUpload):
     79class LGAIdentificationUpload(StudentFileUpload):
    8080    """LGA Identification upload viewlet.
    8181    """
     
    8686    download_name = u'lga_ident'
    8787
    88 class LGAIdentificationImage(Image):
     88class LGAIdentificationImage(StudentImage):
    8989    """Renders LGA Identification scan.
    9090    """
     
    9494# First Sitting Result
    9595
    96 class FirstSittingResultDisplay(FileDisplay):
     96class FirstSittingResultDisplay(StudentFileDisplay):
    9797    """First Sitting Result display viewlet.
    9898    """
     
    105105    grok.view(ExportPDFClearanceSlipPage)
    106106
    107 class FirstSittingResultUpload(FileUpload):
     107class FirstSittingResultUpload(StudentFileUpload):
    108108    """First Sitting Result upload viewlet.
    109109    """
     
    114114    download_name = u'fst_sit_scan'
    115115
    116 class FirstSittingResultImage(Image):
     116class FirstSittingResultImage(StudentImage):
    117117    """Renders First Sitting Result scan.
    118118    """
     
    122122# Second Sitting Result
    123123
    124 class SecondSittingResultDisplay(FileDisplay):
     124class SecondSittingResultDisplay(StudentFileDisplay):
    125125    """Second Sitting Result display viewlet.
    126126    """
     
    133133    grok.view(ExportPDFClearanceSlipPage)
    134134
    135 class SecondSittingResultUpload(FileUpload):
     135class SecondSittingResultUpload(StudentFileUpload):
    136136    """Second Sitting Result upload viewlet.
    137137    """
     
    142142    download_name = u'scd_sit_scan'
    143143
    144 class SecondSittingResultImage(Image):
     144class SecondSittingResultImage(StudentImage):
    145145    """Renders Second Sitting Result scan.
    146146    """
     
    150150# Higher Qualification Result
    151151
    152 class HigherQualificationResultDisplay(FileDisplay):
     152class HigherQualificationResultDisplay(StudentFileDisplay):
    153153    """Higher Qualification Result display viewlet.
    154154    """
     
    161161    grok.view(ExportPDFClearanceSlipPage)
    162162
    163 class HigherQualificationResultUpload(FileUpload):
     163class HigherQualificationResultUpload(StudentFileUpload):
    164164    """Higher Qualification Result upload viewlet.
    165165    """
     
    170170    download_name = u'hq_scan'
    171171
    172 class HigherQualificationResultImage(Image):
     172class HigherQualificationResultImage(StudentImage):
    173173    """Renders Higher Qualification Result scan.
    174174    """
     
    178178# 2nd Higher Qualification Result (PG Students only)
    179179
    180 class SecondHigherQualificationResultDisplay(FileDisplay):
     180class SecondHigherQualificationResultDisplay(StudentFileDisplay):
    181181    """Second Higher Qualification Result display viewlet.
    182182    """
     
    189189    grok.view(ExportPDFClearanceSlipPage)
    190190
    191 class SecondHigherQualificationResultUpload(FileUpload):
     191class SecondHigherQualificationResultUpload(StudentFileUpload):
    192192    """Second Higher Qualification Result upload viewlet.
    193193    """
     
    202202        return show_viewlet(self)
    203203
    204 class SecondHigherQualificationResultImage(Image):
     204class SecondHigherQualificationResultImage(StudentImage):
    205205    """Renders Second Higher Qualification Result scan.
    206206    """
     
    210210# Advanced Level Result
    211211
    212 class AdvancedLevelResultDisplay(FileDisplay):
     212class AdvancedLevelResultDisplay(StudentFileDisplay):
    213213    """Advanced Level Result display viewlet.
    214214    """
     
    221221    grok.view(ExportPDFClearanceSlipPage)
    222222
    223 class AdvancedLevelResultUpload(FileUpload):
     223class AdvancedLevelResultUpload(StudentFileUpload):
    224224    """Advanced Level Result upload viewlet.
    225225    """
     
    230230    download_name = u'alr_scan'
    231231
    232 class AdvancedLevelResultImage(Image):
     232class AdvancedLevelResultImage(StudentImage):
    233233    """Renders Advanced Level Result scan.
    234234    """
     
    238238# Certificate
    239239
    240 class CertificateDisplay(FileDisplay):
     240class CertificateDisplay(StudentFileDisplay):
    241241    """Certificate display viewlet.
    242242    """
     
    249249    grok.view(ExportPDFClearanceSlipPage)
    250250
    251 class CertificateUpload(FileUpload):
     251class CertificateUpload(StudentFileUpload):
    252252    """Certificate upload viewlet.
    253253    """
     
    258258    download_name = u'cert'
    259259
    260 class CertificateImage(Image):
     260class CertificateImage(StudentImage):
    261261    """Renders Certificate scan.
    262262    """
     
    266266# Second Certificate (PG Students only)
    267267
    268 class SecondCertificateDisplay(FileDisplay):
     268class SecondCertificateDisplay(StudentFileDisplay):
    269269    """ Second Certificate display viewlet.
    270270    """
     
    277277    grok.view(ExportPDFClearanceSlipPage)
    278278
    279 class SecondCertificateUpload(FileUpload):
     279class SecondCertificateUpload(StudentFileUpload):
    280280    """Second Certificate upload viewlet.
    281281    """
     
    290290        return show_viewlet(self)
    291291
    292 class SecondCertificateImage(Image):
     292class SecondCertificateImage(StudentImage):
    293293    """Renders Second Certificate scan.
    294294    """
     
    298298# Third Certificate (PG Students only)
    299299
    300 class ThirdCertificateDisplay(FileDisplay):
     300class ThirdCertificateDisplay(StudentFileDisplay):
    301301    """ Third Certificate display viewlet.
    302302    """
     
    309309    grok.view(ExportPDFClearanceSlipPage)
    310310
    311 class ThirdCertificateUpload(FileUpload):
     311class ThirdCertificateUpload(StudentFileUpload):
    312312    """Third Certificate upload viewlet.
    313313    """
     
    322322        return show_viewlet(self)
    323323
    324 class ThirdCertificateImage(Image):
     324class ThirdCertificateImage(StudentImage):
    325325    """Renders Third Certificate scan.
    326326    """
     
    330330# Evidence of Name
    331331
    332 class EvidenceNameDisplay(FileDisplay):
     332class EvidenceNameDisplay(StudentFileDisplay):
    333333    """Evidence of Name display viewlet.
    334334    """
     
    341341    grok.view(ExportPDFClearanceSlipPage)
    342342
    343 class EvidenceNameUpload(FileUpload):
     343class EvidenceNameUpload(StudentFileUpload):
    344344    """Evidence of Name upload viewlet.
    345345    """
     
    350350    download_name = u'evid'
    351351
    352 class EvidenceNameImage(Image):
     352class EvidenceNameImage(StudentImage):
    353353    """Renders Evidence of Name scan.
    354354    """
     
    358358# Result Statement
    359359
    360 class ResultStatementDisplay(FileDisplay):
     360class ResultStatementDisplay(StudentFileDisplay):
    361361    """Result Statement display viewlet.
    362362    """
     
    369369    grok.view(ExportPDFClearanceSlipPage)
    370370
    371 class ResultStatementUpload(FileUpload):
     371class ResultStatementUpload(StudentFileUpload):
    372372    """Result Statement upload viewlet.
    373373    """
     
    378378    download_name = u'res_stat'
    379379
    380 class ResultStatementImage(Image):
     380class ResultStatementImage(StudentImage):
    381381    """Renders Result Statement scan.
    382382    """
     
    386386# Referee Letter
    387387
    388 class RefereeLetterDisplay(FileDisplay):
     388class RefereeLetterDisplay(StudentFileDisplay):
    389389    """Referee Letter display viewlet.
    390390    """
     
    397397    grok.view(ExportPDFClearanceSlipPage)
    398398
    399 class RefereeLetterUpload(FileUpload):
     399class RefereeLetterUpload(StudentFileUpload):
    400400    """Referee Letter upload viewlet.
    401401    """
     
    406406    download_name = u'ref_let'
    407407
    408 class RefereeLetterImage(Image):
     408class RefereeLetterImage(StudentImage):
    409409    """Renders Referee Letter scan.
    410410    """
     
    414414# Second Referee Letter (PG Students only)
    415415
    416 class SecondRefereeLetterDisplay(FileDisplay):
     416class SecondRefereeLetterDisplay(StudentFileDisplay):
    417417    """Second Referee Letter display viewlet.
    418418    """
     
    425425    grok.view(ExportPDFClearanceSlipPage)
    426426
    427 class SecondRefereeLetterUpload(FileUpload):
     427class SecondRefereeLetterUpload(StudentFileUpload):
    428428    """Referee Letter upload viewlet.
    429429    """
     
    438438        return show_viewlet(self)
    439439
    440 class SecondRefereeLetterImage(Image):
     440class SecondRefereeLetterImage(StudentImage):
    441441    """Renders Referee Letter scan.
    442442    """
     
    446446# Third Referee Letter (PG Students only)
    447447
    448 class ThirdRefereeLetterDisplay(FileDisplay):
     448class ThirdRefereeLetterDisplay(StudentFileDisplay):
    449449    """Third Referee Letter display viewlet.
    450450    """
     
    457457    grok.view(ExportPDFClearanceSlipPage)
    458458
    459 class ThirdRefereeLetterUpload(FileUpload):
     459class ThirdRefereeLetterUpload(StudentFileUpload):
    460460    """Referee Letter upload viewlet.
    461461    """
     
    470470        return show_viewlet(self)
    471471
    472 class ThirdRefereeLetterImage(Image):
     472class ThirdRefereeLetterImage(StudentImage):
    473473    """Renders Referee Letter scan.
    474474    """
     
    478478# Affidavit (former Statutory Declaration) of Good Conduct
    479479
    480 class StatutoryDeclarationDisplay(FileDisplay):
     480class StatutoryDeclarationDisplay(StudentFileDisplay):
    481481    """Statutory Declaration of Good Conduct display viewlet.
    482482    """
     
    489489    grok.view(ExportPDFClearanceSlipPage)
    490490
    491 class StatutoryDeclarationUpload(FileUpload):
     491class StatutoryDeclarationUpload(StudentFileUpload):
    492492    """Statutory Declaration of Good Conduct upload viewlet.
    493493    """
     
    498498    download_name = u'stat_dec'
    499499
    500 class StatutoryDeclarationImage(Image):
     500class StatutoryDeclarationImage(StudentImage):
    501501    """Renders Affidavit of Good Conduct scan.
    502502    """
     
    506506# Letter of Admission (PG Students only)
    507507
    508 class LetterAdmissionDisplay(FileDisplay):
     508class LetterAdmissionDisplay(StudentFileDisplay):
    509509    """Letter of Admission display viewlet.
    510510    """
     
    517517    grok.view(ExportPDFClearanceSlipPage)
    518518
    519 class LetterAdmissionUpload(FileUpload):
     519class LetterAdmissionUpload(StudentFileUpload):
    520520    """Letter of Admission upload viewlet.
    521521    """
     
    530530        return show_viewlet(self)
    531531
    532 class LetterAdmissionImage(Image):
     532class LetterAdmissionImage(StudentImage):
    533533    """Renders Letter of Admission scan.
    534534    """
Note: See TracChangeset for help on using the changeset viewer.