Changeset 9208 for main/waeup.kofa/branches/uli-async-update/tools
- Timestamp:
- 20 Sep 2012, 08:22:52 (12 years ago)
- Location:
- main/waeup.kofa/branches/uli-async-update
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-async-update
- Property svn:mergeinfo changed
/main/waeup.kofa/trunk merged: 9172,9178,9180,9182-9184,9186-9189,9191-9204
- Property svn:mergeinfo changed
-
main/waeup.kofa/branches/uli-async-update/tools/fix_import_file.py
r9169 r9208 102 102 'type': 'company', 103 103 'date': 'date', 104 'core_or_elective': 'bool', 104 105 'category': 'p_category', 105 106 'reg_transition': 'reg_state', # we completely change this column, … … 205 206 """ 206 207 if len(value) == 7: 207 return ' B' + value208 return 'K' + value 208 209 return value 209 210 … … 324 325 if value == 'True': 325 326 return 'yes' 327 return 328 329 @classmethod 330 def bool(self, value, row): 331 """ True --> 1 332 """ 333 if value in ('TRUE', 'True'): 334 return '1' 335 elif value in ('FALSE', 'False'): 336 return '0' 326 337 return 327 338
Note: See TracChangeset for help on using the changeset viewer.