#NEWLINE# def post( self ) : #NEWLINE# #INDENT# acct = self . get_argument ( 'q' ) . split ( ':' ) #NEWLINE# if ( len ( self ) > 1 ) : #NEWLINE# #INDENT# acct [ 0 ] = acct [ 1 ] . split ( '@' ) [ 0 ] #NEWLINE# #UNINDENT# acct = acct [ 0 ] . split ( '@' ) [ 0 ] #NEWLINE# self . display [ 'acct' ] = acct #NEWLINE# user = self . models . users . get ( username = acct ) [ 0 ] #NEWLINE# if ( not user ) : #NEWLINE# #INDENT# raise tornado . web . HTTPError ( 404 ) #NEWLINE# #UNINDENT# self . display [ 'user' ] = user #NEWLINE# salmonizer = salmoning . SalmonProtocol ( ) #NEWLINE# salmonizer . key_retriever = self . MockKeyRetriever ( handler = self , local_user = user ) #NEWLINE# env = salmonizer . ParseSalmon ( self . request . body , 'application/magic-envelope+xml' ) #NEWLINE# self . handle_activity_verb ( env , salmonizer . key_retriever . signer_uri )