betty.privacy.privatizer module

Provide an API to determine if information should be kept private.

class betty.privacy.privatizer.Privatizer

Bases: object

Privatize resources.

__init__(lifetime_threshold: int, *, user: User)
has_expired(subject: _Expirable, generations_ago: int = 0) bool

Check if a subject of the given generation has expired.

async privatize(subject: HasPrivacy) None

Privatize a resource.