Changeset 12859 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 16 Apr 2015, 18:49:08 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/export.py
r12180 r12859 29 29 30 30 class ApplicantsContainerExporter(grok.GlobalUtility, ExporterBase): 31 """Exporter for ApplicantsContainers. 31 """The Applicants Container Exporter exports container data. It does not 32 export applicants (application records) inside the container. 32 33 """ 33 34 grok.implements(ICSVExporter) 34 35 grok.name('applicantscontainers') 35 36 36 #: Fieldnames considered by this exporter37 37 fields = tuple(sorted(iface_names(IApplicantsContainer))) 38 #: The title under which this exporter will be displayed39 38 title = _(u'Applicants Containers') 40 39 … … 63 62 return self.export(containers.values(), filepath) 64 63 64 65 65 class ApplicantExporter(grok.GlobalUtility, ExporterBase): 66 """Exporter for Applicants. 66 """The Applicant Exporter exports all application records (= applicants) 67 stored in the database. In contrast to the exporters in the academics 68 section this exporter does not iterate over the items of containers 69 but searches the Applicants Catalog instead. 67 70 """ 68 71 grok.implements(ICSVExporter) 69 72 grok.name('applicants') 70 73 71 #: Fieldnames considered by this exporter72 74 fields = tuple(sorted(IApplicantBaseData.names())) + ('container_code',) 73 74 #: The title under which this exporter will be displayed75 75 title = _(u'Applicants') 76 76 77 77 def mangle_value(self, value, name, context=None): 78 """The mangler determines the the codes of the atributes `course1`, 79 `course2` and `course_admitted`. It furthermore prepares the 80 history messages and adds a hash symbol at the end of the phone number 81 to avoid annoying automatic number transformation by Excel or Calc. 82 """ 78 83 if name in ( 79 84 'course1', 'course2', 'course_admitted') and value is not None:
Note: See TracChangeset for help on using the changeset viewer.