#NEWLINE# def _delete_objects( self , context , resource , objects ) : #NEWLINE# #INDENT# delete_op = getattr ( self , ( 'delete_%s' % context ) ) #NEWLINE# for obj in objects : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# delete_op ( context , obj [ 'result' ] [ 'id' ] ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# LOG . exception ( _LE ( 'Could not find %s to delete.' ) , resource ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# LOG . exception ( _LE ( 'Could not delete %(res)s %(id)s.' ) , { #NEWLINE# #INDENT# 'res' : resource , #NEWLINE# 'id' : obj [ 'result' ] [ 'id' ] , #NEWLINE# #UNINDENT# } )