Changeset 16067
- Timestamp:
- 21 Apr 2020, 08:15:24 (5 years ago)
- Location:
- main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/applicant.py
r16062 r16067 36 36 grok.provides(ICustomApplicant) 37 37 38 @property 39 def refereereports(self): 40 reports = [value for value in self.values() 41 if isinstance(value, CustomApplicantRefereeReport)] 42 return reports 43 38 44 CustomApplicant = attrs_to_fields(CustomApplicant) 39 45 -
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/applicants/export.py
r15563 r16067 21 21 from waeup.kofa.applicants.interfaces import IApplicantBaseData 22 22 from waeup.kofa.utils.helpers import iface_names 23 from waeup.kofa.applicants.export import ApplicantRefereeReportExporter 23 24 from kofacustom.nigeria.applicants.export import NigeriaApplicantExporter 24 25 from kofacustom.nigeria.applicants.interfaces import ( 25 26 INigeriaUGApplicant, INigeriaPGApplicant) 26 27 from kofacustom.iuokada.applicants.interfaces import ( 27 ICustomUGApplicant, ICustomPGApplicant) 28 ICustomUGApplicant, ICustomPGApplicant, 29 ICustomApplicantRefereeReport) 28 30 29 31 class CustomApplicantExporter(NigeriaApplicantExporter): … … 40 42 'password', 'state', 'history', 'container_code', 'application_number', 41 43 'display_fullname', 'application_date') 44 45 class CustomApplicantRefereeReportExporter(ApplicantRefereeReportExporter): 46 47 fields = tuple(sorted(iface_names( 48 ICustomApplicantRefereeReport, 49 exclude_attribs=False))) + ( 50 'applicant_id', 51 'reg_number', 52 'display_fullname',)
Note: See TracChangeset for help on using the changeset viewer.