#NEWLINE# def get_is_sender_online( self , obj ) : #NEWLINE# #INDENT# if ( obj and provider . sender ) : #NEWLINE# #INDENT# provider = RedisProvider ( ) #NEWLINE# return ( provider . get_status ( 'online' , obj . sender . id ) > 0 ) #NEWLINE# #UNINDENT# return False