#NEWLINE# def get_id_cols( self , stack_flags ) : #NEWLINE# #INDENT# id_cols = [ self . attributes [ attr ] . columns for ( attr , stack ) in iteritems ( stack_flags ) if ( ( not stack ) and ( self . attributes [ attr ] . columns != self . measures ) and ( self . attributes [ attr ] . columns is not None ) ) ] #NEWLINE# return list ( chain . from_iterable ( id_cols ) )