Skip to content

Instantly share code, notes, and snippets.

@eedgar
Created March 13, 2015 15:44
Show Gist options
  • Save eedgar/16f2f60724242802c2c4 to your computer and use it in GitHub Desktop.
Save eedgar/16f2f60724242802c2c4 to your computer and use it in GitHub Desktop.
audit usage
from Products.ZenMessaging.audit import audit
auditData = {
'TransactionId': newId,
'uid': uid,
'url': url,
'user': user,
'realm': realm,
'data': something_custom,
'agent': agent,
'userCreated': userCreated
}
audit('UI.CustomTransaction.Create' , data_=auditData)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment