- Timestamp:
- 24 Jan 2020, 12:58:03 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py
r15950 r15951 22 22 from zope.component import getUtility, getAdapter 23 23 from zope.i18n import translate 24 from zope.catalog.interfaces import ICatalog 24 25 from hurry.workflow.interfaces import IWorkflowState 25 26 from waeup.kofa.interfaces import ( … … 33 34 from waeup.kofa.applicants.viewlets import PDFActionButton 34 35 from waeup.kofa.applicants.interfaces import IApplicantRegisterUpdate 35 from waeup.kofa.browser.layout import UtilityView 36 from waeup.kofa.browser.layout import UtilityView, action 36 37 from waeup.kofa.students.interfaces import IStudentsUtils 37 38 from waeup.kofa.interfaces import IPDF … … 572 573 return form_fields 573 574 575 @action(_('Save'), style='primary') 576 def save(self, **data): 577 if self.upload_success is False: # False is not None! 578 # Error during image upload. Ignore other values. 579 return 580 if self.target == 'fedex': 581 cat = getUtility(ICatalog, name='applicants_catalog') 582 results = list(cat.searchResults( 583 applicant_id=(data['trans_id'], data['trans_id']))) 584 if not results: 585 self.flash(_('The transcript application id does not exist.'), 586 type='danger') 587 return 588 self.applyData(self.context, **data) 589 self.flash(_('Form has been saved.')) 590 return 591 574 592 def update(self): 575 593 if self.context.locked or (
Note: See TracChangeset for help on using the changeset viewer.