#NEWLINE# def _send_subscription( self , to , from_ ) : #NEWLINE# #INDENT# subscription_type = self . request . get ( 'subscription_type' ) #NEWLINE# assert ( subscription_type in [ 'subscribe' , 'subscribed' , 'unsubscribe' , 'unsubscribed' ] ) #NEWLINE# form_data = self . _generate_presence_type ( response , from_ , subscription_type ) #NEWLINE# response = self . _send ( ( '/_ah/xmpp/subscription/%s/' % subscription_type ) , form_data ) #NEWLINE# self . response . status = response . status