djblets.privacy.consent.registry¶
Registry for things that require consent from a user.
- class ConsentRequirementsRegistry[source]¶
A registry for managing aspects of a product requiring consent.
Each requirement in the registry requires consent by the user before the action or processing for that requirement is allowed to occur.
- already_registered_error_class[source]¶
alias of
djblets.privacy.consent.errors.ConsentRequirementConflictError
- lookup_error_class[source]¶
alias of
djblets.privacy.consent.errors.ConsentRequirementNotFoundError
- get_consent_requirement(requirement_id)[source]¶
Return a consent requirement with the given ID.
- Parameters
requirement_id (unicode) – The consent requirement ID to look up.
- Returns
The resulting consent requirement, if found. If a requirement with this ID could not be found, this will return
None
.- Return type