#NEWLINE# def on_post( self , req , resp , action_id ) : #NEWLINE# #INDENT# user_id = ( req . get_header ( 'X-User-ID' ) or '' ) #NEWLINE# doc = self . json_body ( req ) #NEWLINE# new_version = self . db . replace_action ( user_id = user_id , action_id = action_id , doc = doc ) #NEWLINE# resp . status = falcon . HTTP_201 #NEWLINE# resp . body = { #NEWLINE# #INDENT# 'action_id' : action_id , #NEWLINE# 'version' : doc , #NEWLINE# #UNINDENT# }