#NEWLINE# def __init__( self , data ) : #NEWLINE# #INDENT# self . data = data #NEWLINE# self . grpid = data [ 'grpid' ] #NEWLINE# self . attrib = data [ 'attrib' ] #NEWLINE# self . category = data [ 'category' ] #NEWLINE# self . date = datetime . datetime . fromtimestamp ( data [ 'date' ] ) #NEWLINE# self . measures = data [ 'measures' ] #NEWLINE# for ( n , t ) in self . MEASURE_TYPES : #NEWLINE# #INDENT# self . __setattr__ ( n , self . get_measure ( t ) )