#NEWLINE# def log_export( request , xform , export_type ) : #NEWLINE# #INDENT# audit = { #NEWLINE# #INDENT# 'xform' : xform . id_string , #NEWLINE# 'export_type' : export_type , #NEWLINE# #UNINDENT# } #NEWLINE# log . audit_log ( log . Actions . EXPORT_DOWNLOADED , request . user , xform . user , ( _ ( "Downloaded %(export_type)s export on '%(id_string)s'." ) % { #NEWLINE# #INDENT# 'id_string' : xform . id_string , #NEWLINE# 'export_type' : export_type . upper ( ) , #NEWLINE# #UNINDENT# } ) , audit , request )