#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def on_PUT( self , request , room_id , membership_action , txn_id ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# defer . returnValue ( self . txns . get_client_transaction ( request , txn_id ) ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# response = ( yield self . on_POST ( request , room_id , txn_id , txn_id ) ) #NEWLINE# self . txns . store_client_transaction ( request , txn_id , response ) #NEWLINE# defer . returnValue ( response )