Changeset 12861 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 17 Apr 2015, 14:43:42 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/export.py
r12859 r12861 64 64 65 65 class ApplicantExporter(grok.GlobalUtility, ExporterBase): 66 """The Applicant Exporter exports a ll application records (= applicants)66 """The Applicant Exporter exports application records (= applicants) 67 67 stored in the database. In contrast to the exporters in the academics 68 68 section this exporter does not iterate over the items of containers 69 but searches the Applicants Catalog instead. 69 but searches the :class:`ApplicantsCatalog` instead. 70 71 The exporter exports all applicants if started in the Data Center 72 which means in the context of the `DataCenter` object. The exporter can also 73 be started 'locally' which means in the context of an `ApplicantsContainer` 74 container. Then the :meth:`export_filtered()` instead of the 75 :meth:`export_all()` method is applied which searches for applicants 76 in the respective container. 70 77 """ 71 78 grok.implements(ICSVExporter) … … 98 105 def export(self, applicants, filepath=None): 99 106 """Export `applicants`, an iterable, as CSV file. 100 101 107 If `filepath` is ``None``, a raw string with CSV data is returned. 102 108 """ … … 107 113 108 114 def export_all(self, site, filepath=None): 109 """Export applicants into filepath as CSV data. 110 115 """Export all applicants into filepath as CSV data. 111 116 If `filepath` is ``None``, a raw string with CSV data is returned. 112 117 """ … … 122 127 123 128 def export_filtered(self, site, filepath=None, **kw): 124 """Export applicants in container. 125 129 """Export filtered applicants in container denoted by keywords (`kw`). 126 130 If `filepath` is ``None``, a raw string with CSV data should 127 131 be returned.
Note: See TracChangeset for help on using the changeset viewer.