Ignore:
Timestamp:
6 Aug 2016, 05:01:07 (8 years ago)
Author:
Henrik Bettermann
Message:

Add more Akoka application prefixes (application types).

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

Legend:

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

    r13947 r14054  
    374374
    375375    def _getPDFCreator(self):
    376         if 'afak' in self.target:
     376        if 'afk' in self.target:
    377377            return getUtility(IPDFCreator, name='akoka_pdfcreator')
    378378        return getUtility(IPDFCreator)
     
    397397            return '%s - Registration Record %s' % (container_title,
    398398            self.context.application_number)
    399         elif 'afas' in self.target:
     399        elif 'afs' in self.target:
    400400            return 'Federal College of Education (Technical) Asaba - %s %s %s' % (
    401401                container_title, ar_translation,
    402402                self.context.application_number)
    403         elif 'afak' in self.target:
     403        elif 'afk' in self.target:
    404404            return 'Federal College of Education (Technical) Akoka - %s %s %s' % (
    405405                container_title, ar_translation,
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests/test_browser.py

    r13819 r14054  
    191191        delattr(ApplicantsContainer, 'prefix')
    192192        # ... and replace by akoka
    193         self.applicantscontainer.prefix = 'afak'
     193        self.applicantscontainer.prefix = 'afk'
    194194        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    195195        self.slip_path = self.view_path + '/application_slip.pdf'
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/utils.py

    r13947 r14054  
    5050        'pre': ['Pre-Degree Studies', 'PRE'],
    5151        'cbt': ['UNIBEN CBT Practice Test', 'CBT'],
    52         'afas': ['Asaba Programmes', 'ASA'],
    53         'afak': ['Akoka Programmes', 'AKO'],
     52        'afs': ['Asaba Programmes', 'ASA'],
     53        'afk': ['Akoka Programmes', 'AKO'],
     54        'afka': ['Asaba Programmes (1st supplementary advert)', 'ASA'],
     55        'afkb': ['Akoka Programmes (2nd supplementary advert)', 'AKO'],
    5456        'ictwk': ['ICT Week Registration', 'ICT'],
    5557        'ase': ['Uniben Admission Screening Exercise', 'ASE'],
Note: See TracChangeset for help on using the changeset viewer.