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.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

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

djblets.privacy.consent.base.BaseConsentRequirement

Return the registry for managing consent requirements.

Returns

The registry for consent requirements.

Return type

ConsentRequirementsRegistry