Changeset 16566


Ignore:
Timestamp:
12 Aug 2021, 06:40:29 (3 years ago)
Author:
Henrik Bettermann
Message:

Finetune requirements for submission.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/browser.py

    r16565 r16566  
    330330    def dataNotComplete(self, data):
    331331        store = getUtility(IExtFileStore)
    332         if self.context.subtype not in ('transfer', 'de') \
     332        if self.context.subtype \
     333            and self.context.subtype not in ('transfer', 'de') \
    333334            and (not self.context.jamb_fname
    334335                 or not self.context.jamb_reg_number):
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/interfaces.py

    r16565 r16566  
    8787
    8888subtype_vocab = SimpleKofaVocabulary(
     89    (_('None'), 'none'),
    8990    (_('UTME'), 'utme'),
    9091    (_('Direct Entry'), 'de'),
     
    170171        vocabulary = subtype_vocab,
    171172        required = False,
     173        default = 'none',
    172174        )
    173175    disabilities = schema.Choice(
     
    693695        title = _(u'Full Name'),
    694696        description = _(u'As it is written on your JAMB result slip.'),
    695         required = False,
     697        required = True,
    696698        readonly = False,
    697699        )
     
    704706    jamb_reg_number = schema.TextLine(
    705707        title = _(u'JAMB Registration Number'),
    706         required = False,
     708        required = True,
    707709        constraint=validate_jamb_reg_number_2, # temporarily in 2021
    708710        description = _(u'Use all CAPS when entering the field.'),
Note: See TracChangeset for help on using the changeset viewer.