#NEWLINE# def review_request_reopened_cb( sender , user , review_request , **kwargs ) : #NEWLINE# #INDENT# event = 'review_request_reopened' #NEWLINE# webhook_targets = WebHookTarget . objects . for_event ( event , review_request . local_site_id , review_request . repository_id ) #NEWLINE# if webhook_targets : #NEWLINE# #INDENT# if ( not user ) : #NEWLINE# #INDENT# user = review_request . submitter #NEWLINE# #UNINDENT# request = FakeHTTPRequest ( user ) #NEWLINE# payload = { #NEWLINE# #INDENT# 'event' : event , #NEWLINE# 'reopened_by' : resources . user . serialize_object ( user , request = request ) , #NEWLINE# 'review_request' : resources . review_request . serialize_object ( review_request , request = request ) , #NEWLINE# #UNINDENT# } #NEWLINE# dispatch_webhook_event ( request , webhook_targets , event , payload )