Changes between Version 7 and Version 8 of S3/S3Audit
- Timestamp:
- 08/20/14 12:21:13 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3Audit
v7 v8 18 18 }}} 19 19 20 Alternatively, these settings can take a callback function with the signature:20 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. 21 21 22 The callback function has the signature: 22 23 {{{#!python 23 24 def audit_callback(method, tablename, form, record, representation): 24 25 }}} 25 26 It takes the following parameters:27 26 28 27 ||=Parameter=||=Explanation=|| … … 33 32 34 33 35 The callback function is to return True or False determining 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.36 34 == Hooks == 37 35