Caution
Buildbot is deprecating Python 2.7. This is one of the last releases supporting it on the buildmaster. More info.
3.4.19. 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 raiseresource.Redirect(avatar_url)
, and the web server will redirect to the avatar_url.-