#NEWLINE# def filter( self , table , users , filter_string ) : #NEWLINE# #INDENT# 'Naive case-insensitive search.' #NEWLINE# q = filter_string . lower ( ) #NEWLINE# return [ user for user in users if ( ( q in user . name . lower ( ) ) or ( q in ( getattr ( user , 'email' , None ) or '' ) . lower ( ) ) ) ]