- Timestamp:
- 16 May 2024, 11:15:56 (6 months ago)
- Location:
- main/kofacustom.iuokada/trunk/src/kofacustom/iuokada
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/etranzact/browser.py
r17735 r17792 17 17 ## 18 18 19 import os 20 import csv 19 21 from kofacustom.nigeria.etranzact.applicantsbrowser import ( 20 22 EtranzactPageApplicant, EtranzactReceiveResponseApplicant, … … 324 326 CREDO_HOST = "api.credocentral.com" 325 327 328 scodes_path = os.path.join( 329 os.path.dirname(__file__), 'servicecodes.csv') 330 reader = csv.DictReader(open(scodes_path, 'rb')) 331 SCODES = {line['p_category']:line['serviceCode'] for line in reader} 332 326 333 class CustomCredoPageStudent(CredoPageStudent): 327 334 … … 329 336 api_public_key = API_PUBLIC_KEY 330 337 338 @property 339 def serviceCode(self): 340 return SCODES.get(self.context.p_category, None) 341 331 342 class CustomCredoPageApplicant(CredoPageApplicant): 332 343 … … 334 345 api_public_key = API_PUBLIC_KEY 335 346 347 @property 348 def serviceCode(self): 349 return SCODES.get(self.context.p_category, None) 350 336 351 class CustomCredoVerifyPaymentStatusPageStudent(CredoVerifyPaymentStatusPageStudent): 337 352 -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/utils/utils.py
r17770 r17792 143 143 'iuits': 'IUITS Fee', 144 144 'fine': 'Fine', 145 'combi': 'Combi Payment',145 #'combi': 'Combi Payment', 146 146 #'resit1': '1 Make-Up Examination Course', 147 147 #'resit2': '2 Make-Up Examination Courses', … … 192 192 'cdlcourse14': '14 Courses', 193 193 'cdlcourse15': '15 Courses', 194 'combi': 'Combi Payment',194 #'combi': 'Combi Payment', 195 195 } 196 196
Note: See TracChangeset for help on using the changeset viewer.