Ignore:
Timestamp:
8 Aug 2016, 15:14:57 (8 years ago)
Author:
Henrik Bettermann
Message:

Use other prefixes for Akoka and Asaba applications.

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

    r14054 r14061  
    374374
    375375    def _getPDFCreator(self):
    376         if 'afk' in self.target:
     376        if self.target.startswith('ak'):
    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 'afs' in self.target:
     399        elif self.target.startswith('ab'):
    400400            return 'Federal College of Education (Technical) Asaba - %s %s %s' % (
    401401                container_title, ar_translation,
    402402                self.context.application_number)
    403         elif 'afk' in self.target:
     403        elif self.target.startswith('ak'):
    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

    r14054 r14061  
    191191        delattr(ApplicantsContainer, 'prefix')
    192192        # ... and replace by akoka
    193         self.applicantscontainer.prefix = 'afk'
     193        self.applicantscontainer.prefix = 'akj'
    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

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