adhocracy_core.auditing package¶
Log which user modifies resources in additional ‘audit’ database.
-
class
AuditLog[source]¶ Bases:
BTrees.OOBTree.OOBTreeAn Auditlog composed of audit entries.
This is a dictionary (
collections.abc.Mapping) with keydatetime.datetimeand valueadhocracy_core.interfaces.SerializedActivity.The methods items, keys, and values have the additional kwargs max_key and min_key to allow range queries:
january = datetime(2015, 1, 1) february = datetime(2015, 2, 1) audit = get_auditlog(context) audit.items(min=january, max=february) ...
-
get_auditlog(context: <InterfaceClass adhocracy_core.interfaces.IResource>) → adhocracy_core.auditing.AuditLog[source]¶ Return the auditlog.