Jump to >

reviewboard.accounts.privacy

Privacy support for user accounts.

class GravatarConsentRequirement[source]

Bases: djblets.privacy.consent.common.BaseGravatarConsentRequirement

intent_description = "Gravatar is used by many services and applications to manage and serve <b>avatars</b>. We use Gravatars by default for your avatar. If you don't want to use it, you can block that here, or upload your own avatar in your Profile settings."[source]

A short description of why the requirement is needed.

icons = {'1x': '/static/rb/images/consent/gravatar.png', '2x': '/static/rb/images/consent/gravatar@2x.png'}[source]

The icons used to represent this service or topic.

This is in the form of a dictionary of icon resolution indicators (for srcset values) to URLs or relative static media paths.

recompute_privacy_consents(unregister=True)[source]

Recompute the built-in consent requirements for user privacy.

Parameters

unregister (bool, optional) – Whether to unregister previous entries first.

Return whether the user is missing any consent requirements.

Parameters

user (django.contrib.auth.models.User) – The user in question.

Returns

Whether or not the user is missing any consent requirements.

Return type

bool