Changeset 7907 for main/waeup.kofa/trunk/src/waeup/kofa/university
- Timestamp:
- 18 Mar 2012, 14:25:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/university/export.py
r7863 r7907 20 20 import grok 21 21 from waeup.kofa.interfaces import ICSVExporter 22 from waeup.kofa.interfaces import MessageFactory as _ 22 23 from waeup.kofa.utils.batching import ExporterBase 23 24 … … 31 32 fields = ('code', 'title', 'title_prefix') 32 33 34 #: The title under which this exporter will be displayed 35 title = _(u'Faculties') 36 33 37 def export(self, faculties, filepath=None): 34 38 """Export `faculties`, an iterable, as CSV file. … … 58 62 #: Fieldnames considered by this exporter 59 63 fields = ('code', 'faculty_code', 'title', 'title_prefix') 64 65 #: The title under which this exporter will be displayed 66 title = _(u'Departments') 60 67 61 68 def mangle_value(self, value, name, context=None): … … 92 99 'passmark', 'semester') 93 100 101 #: The title under which this exporter will be displayed 102 title = _(u'Courses') 103 94 104 def mangle_value(self, value, name, context=None): 95 105 """Hook for mangling values in derived classes … … 131 141 'start_level', 'end_level', 'application_category') 132 142 143 #: The title under which this exporter will be displayed 144 title = _(u'Certificates') 145 133 146 def export_all(self, site, filepath=None): 134 147 """Export faculties in facultycontainer into filepath as CSV data. … … 153 166 fields = ('course', 'faculty_code', 'department_code', 'certificate_code', 154 167 'level', 'mandatory') 168 169 #: The title under which this exporter will be displayed 170 title = _(u'Courses in Certificates') 155 171 156 172 def mangle_value(self, value, name, context=None):
Note: See TracChangeset for help on using the changeset viewer.