Changes between Version 4 and Version 5 of S3/S3Audit


Ignore:
Timestamp:
08/20/14 12:17:29 (7 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3Audit

    v4 v5  
    99== Configuration ==
    1010
    11   - ''tbw''
     11S3Audit can be activated by two deployment settings:
    1212
     13{{{#!python
     14# Log read access (i.e. list and read methods)
     15settings.security.audit_read = True
     16# Log write access (i.e. create, update and delete methods)
     17settings.security.audit_write = True
     18}}}
     19
     20Alternatively, these settings can take a callback function with the signature:
     21
     22{{{#!python
     23def audit_callback(method, tablename, form, record, representation):
     24
     25   return True
     26}}}
     27
     28It takes the following parameters:
     29
     30||=Parameter=||=Explanation=||
     31||'''method'''||The access method (create, list, read, update, delete)||
     32||'''tablename'''||Name of the table accessed||
     33||'''record'''||The record ID (None for multiple records)||
     34||'''representation'''||The representation format of the request||
     35
     36The return value of the callback function (True/False) determines whether the action will be logged or not, thus allowing granular control about which actions are recorded.
    1337== Hooks ==
    1438