Changeset 9194 for main/waeup.kofa/trunk
- Timestamp:
- 17 Sep 2012, 08:06:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/tools/fix_import_file.py
r9160 r9194 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.