Changeset 8064 for main/waeup.uniben/trunk/src/waeup
- Timestamp:
- 8 Apr 2012, 09:59:47 (13 years ago)
- 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/tests.py
r8056 r8064 61 61 # Add an two different applicants containers 62 62 self.pgcontainer = ApplicantsContainer() 63 self.pgcontainer.code = u'pg 2011'64 self.pgcontainer.prefix = u'pg '65 self.app['applicants']['pg 2011'] = self.pgcontainer63 self.pgcontainer.code = u'pgft2011' 64 self.pgcontainer.prefix = u'pgft' 65 self.app['applicants']['pgft2011'] = self.pgcontainer 66 66 self.ugcontainer = ApplicantsContainer() 67 67 self.ugcontainer.code = u'app2011' … … 84 84 pgapplicant.firstname = u'Anna' 85 85 pgapplicant.lastname = u'Post' 86 self.app['applicants']['pg 2011'].addApplicant(pgapplicant)86 self.app['applicants']['pgft2011'].addApplicant(pgapplicant) 87 87 self.pgapplication_number = pgapplicant.application_number 88 self.pgapplicant = self.app['applicants']['pg 2011'][88 self.pgapplicant = self.app['applicants']['pgft2011'][ 89 89 self.pgapplication_number] 90 90 … … 108 108 def test_manage_and_view_applicant(self): 109 109 # Managers can manage pg applicants 110 pgapplicant_path = ('http://localhost/app/applicants/pg 2011/%s'110 pgapplicant_path = ('http://localhost/app/applicants/pgft2011/%s' 111 111 % self.pgapplication_number) 112 112 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') -
main/waeup.uniben/trunk/src/waeup/uniben/applicants/utils.py
r8051 r8064 38 38 'dp': ['Diploma Programmes', 'DPP'], 39 39 'pce': ['PCE Screening', 'PCE'], 40 'pg': ['Postgraduate Programmes', 'PCE'] 40 'pgft': ['Postgraduate Full-Time Programmes', 'PG'], 41 'pgpt': ['Postgraduate Part-Time Programmes', 'PG'] 41 42 } 42 43 -
main/waeup.uniben/trunk/src/waeup/uniben/utils/utils.py
r8020 r8064 19 19 """ 20 20 import os 21 from waeup.kofa.utils.utils import KofaUtils 21 from waeup.kofa.utils.utils import KofaUtils, sorted_phone_prefixes 22 22 from waeup.kofa.accesscodes import create_accesscode 23 23 from waeup.uniben.interfaces import MessageFactory as _ … … 51 51 return 52 52 53 INT_PHONE_PREFIXES = [ 54 (99, _('Germany'), '49'), 55 ( 1, _('Nigeria'), '234'), 56 (99, _('United States'), '1'), 57 (99, _('Niger'), '234'), 58 (99, _('Benin'), '229'), 59 (99, _('Cameroon'), '237'), 60 (99, _('United Kingdom'), '44'), 61 (99, _('France'), '33'), 62 ] 53 63 54 64 class KofaUtils(KofaUtils): … … 57 67 PORTAL_LANGUAGE = 'en' 58 68 69 # We do not dosplay the language selector at the moment. 59 70 PREFERRED_LANGUAGES_DICT = { 60 'en':(1, u'English'), 61 'fr':(2, u'Français'), 62 'de':(3, u'Deutsch'), 63 'ha':(4, u'Hausa'), 64 'yo':(5, u'Yoruba'), 65 'ig':(6, u'Igbo'), 66 } 71 } 72 73 #: A function to return 74 @classmethod 75 def sorted_phone_prefixes(cls, data=INT_PHONE_PREFIXES, request=None): 76 return sorted_phone_prefixes(data, request) 67 77 68 78 EXAM_SUBJECTS_DICT = { … … 200 210 'basic': 'PUME, PDE, PCE, PRENCE', 201 211 'no': 'no application', 202 'pg': 'Postgraduate', 212 'pg_ft': 'Postgraduate Full-Time', 213 'pg_pt': 'Postgraduate Part-Time', 203 214 'sandwich': 'Sandwich', 204 215 'cest': 'Part-Time, Diploma, Certificate'
Note: See TracChangeset for help on using the changeset viewer.