#NEWLINE# def post( self ) : #NEWLINE# #INDENT# user_address = 'example@gmail.com' #NEWLINE# msg = 'Someone has sent you a gift on Example.com. To view: http://example.com/gifts/' #NEWLINE# status_code = xmpp . send_message ( user_address , msg ) #NEWLINE# chat_message_sent = ( status_code == xmpp . NO_ERROR ) #NEWLINE# if ( not chat_message_sent ) : #NEWLINE# #INDENT# pass