Jump to >

This documentation covers the in-development release of Djblets. You can see the latest stable docs or all previous versions.

djblets.privacy.consent.common

Common consent requirements for use in applications.

This provides some basic definitions with standard requirement IDs that can be further customized by applications needing to offer consent for services.

class BaseGravatarConsentRequirement[source]

Base consent requirement for Gravatar usage.

This supplies a requirement ID, name, default summary, and default data use description for Gravatar consent requirements. Subclasses should provide their own intent and data use descriptions.

class BaseIntercomConsentRequirement[source]

Base consent requirement for Intercom usage.

This supplies a requirement ID, name, and default summary for Intercom consent requirements. Subclasses should provide their own intent and data use descriptions.

class PolicyConsentRequirement(privacy_policy_url, terms_of_service_url, site_admin_email=None, reject_instructions=None)[source]

A consent requirement for asking users to acknowledge policies.

property name[source]

The name of the requirement.

property summary[source]

A brief summary of the requirement.

property intent_description[source]

A short description of why the requirement is needed.