#NEWLINE# def post_process_extensions( self , extensions , resp_obj , request , action_args ) : #NEWLINE# #INDENT# for ext in extensions : #NEWLINE# #INDENT# response = None #NEWLINE# if inspect . isgenerator ( ext ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# with ResourceExceptionHandler ( ) : #NEWLINE# #INDENT# response = ext . send ( resp_obj ) #NEWLINE# #UNINDENT# #UNINDENT# except StopIteration : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# except Fault as ex : #NEWLINE# #INDENT# response = ex #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# with ResourceExceptionHandler ( ) : #NEWLINE# #INDENT# response = ext ( req = request , resp_obj = resp_obj , ** action_args ) #NEWLINE# #UNINDENT# #UNINDENT# except Fault as ex : #NEWLINE# #INDENT# response = ex #NEWLINE# #UNINDENT# #UNINDENT# if response : #NEWLINE# #INDENT# return response #NEWLINE# #UNINDENT# #UNINDENT# return None