djblets.avatars.services.gravatar¶
An avatar service for providing Gravatars.
- class GravatarService(settings_manager_class)[source]¶
- An avatar service for providing Gravatars. - get_avatar_urls_uncached(user, size)[source]¶
- Return the Gravatar URLs for the requested user. - Parameters
- user (django.contrib.auth.models.User) – The user whose avatar URLs are to be fetched. 
- size (int) – The size (in pixels) the avatar is to be rendered at. 
 
 - Returns
- dict: A dictionary containing the URLs of the user’s avatars at normal- and high-DPI. 
 
 - get_etag_data(user)[source]¶
- 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 
 
 
