Ignore:
Timestamp:
7 May 2012, 10:37:27 (13 years ago)
Author:
uli
Message:

Rollback r8376 partially, as dates are now 'hashed' by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/export.py

    r8376 r8381  
    4141    title = _(u'Students')
    4242
    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 transformation
    47         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 
    5543    def export(self, students, filepath=None):
    5644        """Export `students`, an iterable, as CSV file.
Note: See TracChangeset for help on using the changeset viewer.