Package s3 :: Module s3aaa :: Class S3Audit
[frames] | no frames]

Class S3Audit

source code

object --+
         |
        S3Audit

S3 Audit Trail Writer Class

Instance Methods
 
__init__(self, tablename="s3_audit", migrate=True, fake_migrate=False)
Constructor
source code
 
__call__(self, method, prefix, name, form=None, record=None, representation="unknown")
Audit
source code
 
represent(self, records)
Provide a Human-readable representation of Audit records - currently unused
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, tablename="s3_audit", migrate=True, fake_migrate=False)
(Constructor)

source code 

Constructor

Parameters:
  • tablename - the name of the audit table
  • migrate - migration setting
Overrides: object.__init__

Note: this defines the audit table

__call__(self, method, prefix, name, form=None, record=None, representation="unknown")
(Call operator)

source code 

Audit

Parameters:
  • method - Method to log, one of "create", "update", "read", "list" or "delete"
  • prefix - the module prefix of the resource
  • name - the name of the resource (without prefix)
  • form - the form
  • record - the record ID
  • representation - the representation format

represent(self, records)

source code 

Provide a Human-readable representation of Audit records
- currently unused

@param record: the record IDs