Jump to >

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:
Returns
dict: A dictionary containing the URLs of the user’s avatars at normal- and high-DPI.