Ignore:
Timestamp:
21 Feb 2024, 12:53:14 (9 months ago)
Author:
Henrik Bettermann
Message:

No fields required on CDL portal.

File:
1 edited

Legend:

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

    r17159 r17701  
    341341    def dataNotComplete(self, data):
    342342        store = getUtility(IExtFileStore)
     343        if self.context.__parent__.with_picture:
     344            store = getUtility(IExtFileStore)
     345            if not store.getFileByContext(self.context, attr=u'passport.jpg'):
     346                return _('No passport picture uploaded.')
     347        if grok.getSite().__name__ == 'iuokada-cdl':
     348            return False
    343349        if self.context.subtype \
    344350            and self.context.subtype not in ('transfer', 'de', 'jupeb') \
     
    349355            and not self.context.ref_number:
    350356            return _('Reference Number field must be filled.')
    351         if self.context.__parent__.with_picture:
    352             store = getUtility(IExtFileStore)
    353             if not store.getFileByContext(self.context, attr=u'passport.jpg'):
    354                 return _('No passport picture uploaded.')
    355357        if self.context.subtype == 'transfer' \
    356358            and self.context.__parent__.code!= 'ug2020' \
Note: See TracChangeset for help on using the changeset viewer.