#NEWLINE# def convertType( self , dbType , dataType ) : #NEWLINE# #INDENT# 'Converts the data type to a python type code.' #NEWLINE# typeCode = STRING #NEWLINE# if ( dataType in NUMBER_TYPES ) : #NEWLINE# #INDENT# typeCode = NUMBER #NEWLINE# if ( self . useFloat and ( typeCode in FLOAT_TYPES ) ) : #NEWLINE# #INDENT# typeCode = float #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( dataType in BINARY_TYPES ) : #NEWLINE# #INDENT# typeCode = BINARY #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if dataType . startswith ( 'DATE' ) : #NEWLINE# #INDENT# typeCode = Date #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if dataType . startswith ( 'TIMESTAMP' ) : #NEWLINE# #INDENT# typeCode = Timestamp #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if dataType . startswith ( 'TIME' ) : #NEWLINE# #INDENT# typeCode = Time #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return typeCode