#NEWLINE# def inbox_purge( self , user ) : #NEWLINE# #INDENT# if user . is_authenticated ( ) : #NEWLINE# #INDENT# self . client . delete ( ( 'user:%d:notifications' % user . pk ) ) #NEWLINE# self . client . delete ( ( 'user:%d:notificationsidx' % user . pk ) ) #NEWLINE# signals . inbox_purged . send ( sender = user . __class__ , user = user )