Changeset 8381 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 7 May 2012, 10:37:27 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/export.py
r8377 r8381 77 77 78 78 def mangle_value(self, value, name, context=None): 79 # Add the hash symbol at the end of dates.80 # This is to avoid annoying automatic date transformation81 # by Excel or Calc.82 if name in ('date_of_birth', 'emp_start', 'emp_end',83 'emp2_start', 'emp2_end') and value is not None:84 value = str(value) + '#'85 79 if name in ( 86 80 'course1', 'course2', 'course_admitted') and value is not None: -
main/waeup.kofa/trunk/src/waeup/kofa/students/export.py
r8376 r8381 41 41 title = _(u'Students') 42 42 43 def mangle_value(self, value, name, context=None):44 """Add the hash symbol at the end of date_of_birth.45 46 This is to avoid annoying automatic date transformation47 by Excel or Calc.48 """49 if name == 'date_of_birth' and value is not None:50 value = str(value) + '#'51 return super(52 StudentsExporter, self).mangle_value(53 value, name, context=context)54 55 43 def export(self, students, filepath=None): 56 44 """Export `students`, an iterable, as CSV file.
Note: See TracChangeset for help on using the changeset viewer.