Changeset 16957 for main/kofacustom.iuokada/trunk/src/kofacustom
- Timestamp:
- 3 Jun 2022, 13:55:27 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/interfaces.py
r16612 r16957 58 58 #: Regular expression to check jamb_reg_number formats. 59 59 check_jamb_reg_number_2 = re.compile(r"^1\d{7}[A-Z]{2}$").match 60 check_jamb_reg_number_3 = re.compile(r"^\d{12}[A-Z]{2}$").match 60 61 61 62 def validate_jamb_reg_number_2(value): 62 63 if not check_jamb_reg_number_2(value): 64 raise NotJAMBRegNumber2(value) 65 return True 66 67 def validate_jamb_reg_number_3(value): 68 if not check_jamb_reg_number_3(value): 63 69 raise NotJAMBRegNumber2(value) 64 70 return True … … 350 356 title = _(u'JAMB Registration Number'), 351 357 required = False, 352 constraint=validate_jamb_reg_number,358 # constraint=validate_jamb_reg_number, 353 359 description = _(u'Use all CAPS when entering the field.'), 354 360 ) … … 707 713 title = _(u'JAMB Registration Number'), 708 714 required = False, 709 constraint=validate_jamb_reg_number_2, # temporarily in 2021 715 # constraint=validate_jamb_reg_number_2, # temporarily in 2021 716 constraint=validate_jamb_reg_number_3, 710 717 description = _(u'Use all CAPS when entering the field.'), 711 718 )
Note: See TracChangeset for help on using the changeset viewer.