#NEWLINE# def __init__( self , row ) : #NEWLINE# #INDENT# if ( ( not row ) or ( not ( len ( row ) == 3 ) ) ) : #NEWLINE# #INDENT# msgx ( ( 'Expected 3 values in this row: %s' % row ) ) #NEWLINE# #UNINDENT# for ( idx , item ) in enumerate ( row ) : #NEWLINE# #INDENT# self . __dict__ [ self . ATTR_NAMES [ idx ] ] = item . strip ( ) #NEWLINE# #UNINDENT# if ( self . due_date == 'None' ) : #NEWLINE# #INDENT# self . due_date = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . due_date = datetime . strptime ( self . due_date , '%Y-%m%d' )