Version 9 (modified by Dominic König, 10 years ago) ( diff )



Table of Contents

  1. Purpose
  2. Configuration
  3. Code


S3Audit keeps a log of all data access (CRUD actions): who accessed which records how and when.

The audit trail is stored in the database (table s3_audit).


S3Audit can be activated by two deployment settings:

# Log read access (i.e. list and read methods) = True
# Log write access (i.e. create, update and delete methods) = True

Alternatively, these settings can take a callback function that returns True or False in order to determine whether the action will be logged or not (True=log the action, False=do not log), thus allowing granular control about which actions are recorded.

The callback function has the signature:

def audit_callback(method, tablename, form, record, representation):
methodThe access method (create, list, read, update, delete)
tablenameName of the table accessed
recordThe record ID (None for multiple records)
representationThe representation format of the request


  • tbw
Note: See TracWiki for help on using the wiki.