#NEWLINE# def _CreateAuditEvent( self , event_action ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# flow_name = event_action . flow_obj . args . flow_runner_args . flow_name #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# flow_name = '' #NEWLINE# #UNINDENT# event = flow . AuditEvent ( user = self . flow_obj . token . username , action = event_action , urn = self . flow_obj . urn , flow_name = flow_name , description = self . args . description ) #NEWLINE# flow . Events . PublishEvent ( 'Audit' , event , token = self . flow_obj . token )