reviewboard.avatars.services¶
Review Board-specific specializations of avatar services.
-
class
FileUploadService
(settings_manager_class)[source]¶ Bases:
djblets.avatars.services.file_upload.FileUploadService
A Review Board-specialized file upload avatar services.
This service is almost identical to the
one in Djblets
, except we ensure that all URLs returned are absolute URLs.-
get_avatar_urls_uncached
(user, size)[source]¶ Return the avatar 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.
-