Changeset 16565


Ignore:
Timestamp:
6 Aug 2021, 06:59:16 (3 years ago)
Author:
Henrik Bettermann
Message:

Remove the JAMB fields 'required' flag. Ad further conditions to the ´dataNotComplete´ method.

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

    r16559 r16565  
    330330    def dataNotComplete(self, data):
    331331        store = getUtility(IExtFileStore)
     332        if self.context.subtype not in ('transfer', 'de') \
     333            and (not self.context.jamb_fname
     334                 or not self.context.jamb_reg_number):
     335            return _('JAMB fields must be filled.')
    332336        if self.context.__parent__.with_picture:
    333337            store = getUtility(IExtFileStore)
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/interfaces.py

    r16558 r16565  
    693693        title = _(u'Full Name'),
    694694        description = _(u'As it is written on your JAMB result slip.'),
    695         required = True,
     695        required = False,
    696696        readonly = False,
    697697        )
     
    704704    jamb_reg_number = schema.TextLine(
    705705        title = _(u'JAMB Registration Number'),
    706         required = True,
     706        required = False,
    707707        constraint=validate_jamb_reg_number_2, # temporarily in 2021
    708708        description = _(u'Use all CAPS when entering the field.'),
Note: See TracChangeset for help on using the changeset viewer.