#NEWLINE# @ classmethod #NEWLINE# def delete( cls , model_object , publish = True , dispatch_trigger = True ) : #NEWLINE# #INDENT# persisted_object = cls . _get_impl ( ) . delete ( model_object ) #NEWLINE# if publish : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# cls . publish_delete ( model_object ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# LOG . exception ( 'Publish failed.' ) #NEWLINE# #UNINDENT# #UNINDENT# if model_object : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# cls . dispatch_delete_trigger ( model_object ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# LOG . exception ( 'Trigger dispatch failed.' ) #NEWLINE# #UNINDENT# #UNINDENT# return persisted_object