Changeset 7907
- Timestamp:
- 18 Mar 2012, 14:25:25 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py
r7881 r7907 258 258 """ 259 259 fields = Attribute("""List of fieldnames in resulting CSV""") 260 260 261 title = schema.TextLine( 262 title = u'Title', 263 description = u'Description to be displayed in selections.', 264 ) 261 265 def mangle_value(value, name, obj): 262 266 """Mangle `value` extracted from `obj` or suobjects thereof. -
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): -
main/waeup.kofa/trunk/src/waeup/kofa/utils/batching.py
r7860 r7907 351 351 fields = ('code', 'title', 'title_prefix') 352 352 353 #: The title under which this exporter will be displayed 354 #: (if registered as a utility) 355 title = 'Override this title' 356 353 357 def mangle_value(self, value, name, context=None): 354 358 """Hook for mangling values in derived classes
Note: See TracChangeset for help on using the changeset viewer.