#NEWLINE# def get_filter_function_string( self , collection_name ) : #NEWLINE# #INDENT# '\n        ' #NEWLINE# if ( self . function == 'contains' ) : #NEWLINE# #INDENT# filter_string = ( ' CONTAINS (%s.%s, %s) ' % ( collection_name , self . attribute , self . get_value_string ( ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . function == 'icontains' ) : #NEWLINE# #INDENT# filter_string = ( ' LIKE (%s.%s, "%s%s%s", true) ' % ( collection_name , self . attribute , '%' , self . value , '%' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# filter_string = '' #NEWLINE# #UNINDENT# #UNINDENT# return filter_string