Changeset 8945
- Timestamp:
- 8 Jul 2012, 15:10:12 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/tools/fix_import_file.py
r8941 r8945 65 65 'sex': 'gender', 66 66 'birthday': 'date', 67 'request_date': 'datetime',68 67 'marit_stat': 'marit_stat', 69 68 'session': 'session', … … 103 102 'type': 'company', 104 103 'date': 'date', 105 ' p_category': 'p_category',104 'category': 'p_category', 106 105 } 107 106 … … 369 368 return value 370 369 371 372 @classmethod373 def datetime(self, value):374 """ 'yyyy/mm/dd' --> 'yyyy-mm-dd'375 """376 #print "IN: ", value377 if value == "None":378 value = ""379 elif value == "":380 value = ""381 else:382 #value = datetime.datetime.strptime(value, '%Y/%m/%d')383 #value = datetime.datetime.strftime(value, '%Y-%m-%d')384 pass385 #print "OUT: ", value386 return value387 388 370 @classmethod 389 371 def mode(self, value):
Note: See TracChangeset for help on using the changeset viewer.