#NEWLINE# def get_and_delete_user_messages( self ) : #NEWLINE# #INDENT# '\n        Get all of the messages for the current user; removing them.\n        ' #NEWLINE# if self . facebook . uid : #NEWLINE# #INDENT# key = ( 'messages:%s' % self . facebook . uid ) #NEWLINE# if ( ( not hasattr ( self , '_messages' ) ) or ( self . _messages is None ) ) : #NEWLINE# #INDENT# self . _messages = memcache . get ( key ) #NEWLINE# #UNINDENT# memcache . delete ( key ) #NEWLINE# return key . _messages #NEWLINE# #UNINDENT# return None