Changeset 15489
- Timestamp:
- 9 Jul 2019, 06:09:29 (5 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/interfaces.py
r15472 r15489 37 37 from waeup.kofa.students.vocabularies import nats_vocab, GenderSource 38 38 from kofacustom.nigeria.interfaces import ( 39 LGASource, high_qual, high_grade, exam_types, validate_jamb_reg_number) 39 LGASource, DisabilitiesSource, 40 high_qual, high_grade, exam_types, validate_jamb_reg_number) 40 41 from kofacustom.nigeria.interfaces import MessageFactory as _ 41 42 from kofacustom.nigeria.payments.interfaces import INigeriaOnlinePayment … … 270 271 """ 271 272 273 disabilities = schema.Choice( 274 title = _(u'Disabilities'), 275 source = DisabilitiesSource(), 276 required = False, 277 ) 272 278 nationality = schema.Choice( 273 279 source = nats_vocab, -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/tests/test_browser.py
r14093 r15489 411 411 self.assertMatches(result, 412 412 'aggregate,applicant_id,bank_account_name,bank_account_number,' 413 'bank_name,course1,course2,course_admitted,date_of_birth,email,' 413 'bank_name,course1,course2,course_admitted,date_of_birth,' 414 'disabilities,email,' 414 415 'emp2_end,emp2_position,emp2_reason,emp2_start,emp_end,' 415 416 'emp_position,emp_reason,emp_start,employer,employer2,' … … 426 427 'application_number,display_fullname,application_date\r\n' 427 428 428 ',dp2011_654321,,,,CERT1,CERT1,CERT1,1981-02-04#, '429 ',dp2011_654321,,,,CERT1,CERT1,CERT1,1981-02-04#,,' 429 430 'anna@sample.com,,,,,,,,,,,Anna,,,,,,,,,,,,,,,Line 1++Line 2,' 430 431 '"[\'english_language\', \'fine_art\']",' … … 442 443 [ 443 444 'aggregate','ignore_applicant_id','bank_account_name','bank_account_number', 444 'bank_name','course1','course2','course_admitted','date_of_birth','email', 445 'bank_name','course1','course2','course_admitted','date_of_birth', 446 'disabilities','email', 445 447 'emp2_end','emp2_position','emp2_reason','emp2_start','emp_end', 446 448 'emp_position','emp_reason','emp_start','employer','employer2', … … 472 474 [ 473 475 'aggregate','ignore_applicant_id','bank_account_name','bank_account_number', 474 'bank_name','course1','course2','course_admitted','date_of_birth','email', 476 'bank_name','course1','course2','course_admitted','date_of_birth', 477 'disabilities', 'email', 475 478 'emp2_end','emp2_position','emp2_reason','emp2_start','emp_end', 476 479 'emp_position','emp_reason','emp_start','employer','employer2', -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interfaces.py
r15046 r15489 22 22 from zc.sourcefactory.basic import BasicSourceFactory 23 23 from waeup.kofa.interfaces import (SimpleKofaVocabulary, 24 ISessionConfiguration, academic_sessions_vocab) 24 ISessionConfiguration, academic_sessions_vocab, 25 ContextualDictSourceFactoryBase) 25 26 from kofacustom.nigeria.utils.lgas import LGAS 26 27 … … 107 108 _('Invalid key: ${a}', mapping = {'a':value})) 108 109 110 class DisabilitiesSource(ContextualDictSourceFactoryBase): 111 """A source for filtering groups of students 112 """ 113 #: name of dict to deliver from kofa utils. 114 DICT_NAME = 'DISABILITIES_DICT' 115 116 109 117 class ICustomSessionConfiguration(ISessionConfiguration): 110 118 """A session configuration object. -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/utils/utils.py
r15481 r15489 308 308 } 309 309 310 DISABILITIES_DICT = { 311 'cripple': 'Paraplegia (cripple)', 312 'deaf': 'Deaf', 313 'dumb': 'Dumb', 314 'blind': 'Blind', 315 'others': 'Others', 316 } 317 310 318 311 319 @property
Note: See TracChangeset for help on using the changeset viewer.