#NEWLINE# def filter( self , table , tenants , filter_string ) : #NEWLINE# #INDENT# 'Really naive case-insensitive search.' #NEWLINE# q = filter_string . lower ( ) #NEWLINE# def comp( tenant ) : #NEWLINE# #INDENT# if ( q in tenant . name . lower ( ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False #NEWLINE# #UNINDENT# return filter ( comp , tenants )