Changeset 14061 for main/waeup.uniben/trunk/src/waeup/uniben/applicants
- Timestamp:
- 8 Aug 2016, 15:14:57 (8 years ago)
- 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 374 374 375 375 def _getPDFCreator(self): 376 if 'afk' in self.target:376 if self.target.startswith('ak'): 377 377 return getUtility(IPDFCreator, name='akoka_pdfcreator') 378 378 return getUtility(IPDFCreator) … … 397 397 return '%s - Registration Record %s' % (container_title, 398 398 self.context.application_number) 399 elif 'afs' in self.target:399 elif self.target.startswith('ab'): 400 400 return 'Federal College of Education (Technical) Asaba - %s %s %s' % ( 401 401 container_title, ar_translation, 402 402 self.context.application_number) 403 elif 'afk' in self.target:403 elif self.target.startswith('ak'): 404 404 return 'Federal College of Education (Technical) Akoka - %s %s %s' % ( 405 405 container_title, ar_translation, -
main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests/test_browser.py
r14054 r14061 191 191 delattr(ApplicantsContainer, 'prefix') 192 192 # ... and replace by akoka 193 self.applicantscontainer.prefix = 'a fk'193 self.applicantscontainer.prefix = 'akj' 194 194 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 195 195 self.slip_path = self.view_path + '/application_slip.pdf' -
main/waeup.uniben/trunk/src/waeup/uniben/applicants/utils.py
r14055 r14061 50 50 'pre': ['Pre-Degree Studies', 'PRE'], 51 51 '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'], 56 55 'ictwk': ['ICT Week Registration', 'ICT'], 57 56 'ase': ['Uniben Admission Screening Exercise', 'ASE'],
Note: See TracChangeset for help on using the changeset viewer.