- Timestamp:
- 23 Aug 2018, 06:43:06 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/applicant.py
r14829 r15113 19 19 import grok 20 20 from zope.interface import implementedBy 21 from zope.component import getUtility 22 from waeup.kofa.interfaces import IExtFileStore 21 23 from waeup.kofa.applicants.applicant import ApplicantFactory 22 24 from waeup.kofa.utils.helpers import attrs_to_fields … … 25 27 ICustomApplicant, ICustomUGApplicantEdit, ICustomPGApplicantEdit, 26 28 IPUTMEApplicantEdit, ITranscriptApplicant, ICertificateRequest) 29 30 @grok.subscribe(ICustomApplicant, grok.IObjectRemovedEvent) 31 def custom_handle_applicant_removed(applicant, event): 32 """If an applicant is removed also pdf files of this applicant are removed. 33 """ 34 file_store = getUtility(IExtFileStore) 35 file_store.deleteFileByContext(applicant, attr='stateresult.pdf') 36 return 27 37 28 38 class CustomApplicant(NigeriaApplicant):
Note: See TracChangeset for help on using the changeset viewer.