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

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

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  
    7777
    7878    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 transformation
    81         # 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) + '#'
    8579        if name in (
    8680            'course1', 'course2', 'course_admitted') and value is not None:
  • 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.