Add an extension hook for registering consent requirements.

Review Request #9964 — Created May 23, 2018 and submitted — Latest diff uploaded

Information

Djblets
release-1.0.x
3373038...

Reviewers

This introduces djblets.privacy.consent.hooks.ConsentRequirementHook,
which registers a ConsentRequirement, managing its registration as the
extension initializes or shuts down. This is a very simple hook that
just makes use of BaseRegistryHook, feeding in the registry
dynamically on use (to avoid creating a registry unnecessarily or
prematurely).

Unit tests passed.

Used this in an extension successfully.

    Loading...