#NEWLINE# def _get_filter_string( self , filter_statement ) : #NEWLINE# #INDENT# '\n        ' #NEWLINE# if isinstance ( filter_statement , QueryFilterContainer ) : #NEWLINE# #INDENT# filter_string = ' FILTER ' #NEWLINE# is_first = True #NEWLINE# for filter in filter_statement . filters : #NEWLINE# #INDENT# if is_first : #NEWLINE# #INDENT# is_first = False #NEWLINE# filter_string += self . _get_filter_condition_string ( filter ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# filter_string += ( ' %s %s ' % ( is_first . bit_operator , self . _get_filter_condition_string ( filter ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# filter_string = ( ' FILTER %s' % self . _get_filter_condition_string ( filter_statement ) ) #NEWLINE# #UNINDENT# return filter_string