Changeset 8376 for main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Timestamp:
- 7 May 2012, 05:57:46 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/export.py
r8311 r8376 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 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) + '#' 79 85 if name in ( 80 86 'course1', 'course2', 'course_admitted') and value is not None: -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py
r8311 r8376 169 169 'reg_number,screening_score,screening_venue,sex,state,' 170 170 'student_id\r\n' 171 'dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04 ,'171 'dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04#,' 172 172 'Anna M. Tester,anna@sample.com,Anna,' 173 173 in result) … … 193 193 'reg_number,screening_score,screening_venue,sex,state,' 194 194 'student_id\r\n' 195 'dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04 ,'195 'dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04#,' 196 196 'Anna M. Tester,anna@sample.com,Anna,' 197 197 in result)
Note: See TracChangeset for help on using the changeset viewer.