3.4.18. Avatars

Buildbot's avatar support associate a small image with each user.

class buildbot.www.avatar.AvatarBase

Class that can be used, to get more the avatars for the users. This can be used for the authenticated users, but also for the users referenced by changes.

getUserAvatar(self, email, size, defaultAvatarUrl)

returns the user's avatar, from the user's email (via deferred). If the data is directly available, this function returns a tuple (mime_type, picture_raw_data). If the data is available in another URL, this function can raise resource.Redirect(avatar_url), and the web server will redirect to the avatar_url.