Changeset 13557 for main


Ignore:
Timestamp:
21 Dec 2015, 15:30:08 (9 years ago)
Author:
Henrik Bettermann
Message:

Fix CustomPDFApplicationSlip.

Shorten application prefixes.

Location:
main/waeup.uniben/trunk/src/waeup/uniben
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py

    r13552 r13557  
    3737    NigeriaApplicantManageFormPage,
    3838    NigeriaPDFApplicationSlip)
    39 from waeup.kofa.applicants.pdf import PDFApplicationSlip
    4039from waeup.uniben.applicants.interfaces import (
    4140    ICustomApplicant)
     
    274273        return
    275274
    276 class CustomPDFApplicationSlip(PDFApplicationSlip):
     275class CustomPDFApplicationSlip(NigeriaPDFApplicationSlip):
    277276
    278277    @property
     
    282281        ar_translation = translate(_('Application Record'),
    283282            'waeup.kofa', target_language=portal_language)
    284         if 'affilasa' in self.target:
     283        if 'afas' in self.target:
    285284            return 'Federal College of Education (Technical) Asaba - %s %s %s' % (
    286285                container_title, ar_translation,
    287286                self.context.application_number)
    288         if 'affilako' in self.target:
     287        if 'afak' in self.target:
    289288            return 'Federal College of Education (Technical) Akoka - %s %s %s' % (
    290289                container_title, ar_translation,
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests/test_browser.py

    r13552 r13557  
    169169        delattr(ApplicantsContainer, 'prefix')
    170170        # ... and replace by asaba
    171         self.applicantscontainer.prefix = 'affilasa'
     171        self.applicantscontainer.prefix = 'afas'
    172172        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    173173        self.slip_path = self.view_path + '/application_slip.pdf'
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/utils.py

    r13552 r13557  
    4848        'pre': ['Pre-Degree Studies', 'PRE'],
    4949        'cbt': ['UNIBEN CBT Practice Test', 'CBT'],
    50         'affilasa': ['Asaba Programmes', 'ASA'],
    51         'affilako': ['Akoka Programmes', 'AKO'],
     50        'afas': ['Asaba Programmes', 'ASA'],
     51        'afak': ['Akoka Programmes', 'AKO'],
    5252        }
    5353
Note: See TracChangeset for help on using the changeset viewer.