- Timestamp:
- 11 May 2024, 07:45:54 (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/export.py
r16431 r17760 23 23 from waeup.kofa.applicants.interfaces import ( 24 24 IApplicantBaseData, IApplicantsContainer, IApplicantOnlinePayment, 25 IApplicantRefereeReport )25 IApplicantRefereeReport, IApplicant) 26 26 from waeup.kofa.interfaces import ICSVExporter 27 27 from waeup.kofa.interfaces import MessageFactory as _ … … 80 80 grok.name('applicants') 81 81 82 fields = tuple(sorted(iface_names(IApplicant BaseData))) + (82 fields = tuple(sorted(iface_names(IApplicant))) + ( 83 83 'password', 'state', 'history', 'container_code', 'application_number', 84 84 'display_fullname', 'application_date') … … 93 93 if name.startswith('course') and value is not None: 94 94 value = value.code 95 #elif name == 'school_grades': 96 # value = [eval(entry.to_string()) for entry in value] 95 elif name == 'school_grades' and value is not None: 96 value = [eval(entry.to_string()) for entry in value] 97 elif name == 'referees' and value is not None: 98 value = [eval(entry.to_string()) for entry in value] 97 99 elif name == 'history': 98 100 value = getattr(value, 'messages', None)
Note: See TracChangeset for help on using the changeset viewer.