Jump to >

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


An avatar service for providing Gravatars.

class GravatarService(settings_manager_class)[source]

Bases: djblets.avatars.services.base.AvatarService

An avatar service for providing Gravatars.

avatar_service_id = u'gravatar'[source]
name = u'Gravatar'[source]
consent_requirement_id = u'gravatar'[source]
get_avatar_urls_uncached(user, size)[source]

Return the Gravatar URLs for the requested user.

dict: A dictionary containing the URLs of the user’s avatars at normal- and high-DPI.

Return the ETag data for the user’s avatar.

Parameters:user (django.contrib.auth.models.User) – The user.
Returns:The uniquely identifying information for the user’s avatar.
Return type:list of unicode