Ignore:
Timestamp:
25 Jan 2020, 15:22:09 (5 years ago)
Author:
Henrik Bettermann
Message:

Check transcript application id before submission.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py

    r15952 r15954  
    476476            not store.getFileByContext(self.context, attr=u'verificationdoc.pdf'):
    477477            return _('No pdf file uploaded.')
    478 
     478        if self.target == 'fedex':
     479            cat = getUtility(ICatalog, name='applicants_catalog')
     480            results = list(cat.searchResults(
     481                applicant_id=(data['trans_id'], data['trans_id'])))
     482            if not results:
     483                return _('The transcript application id does not exist.')
    479484        return False
    480485
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/interfaces.py

    r15951 r15954  
    922922
    923923    trans_id = schema.TextLine(
    924         title = _(u'Id of Transcript Application'),
     924        title = _(u'Transcript Application Id'),
    925925        required = True,
    926926        readonly = False,
Note: See TracChangeset for help on using the changeset viewer.