Esempio n. 1
0
    def getAvatarByAccountName(cls, accountName):
        """
        Retrieves the first avatar found using the authenticators in the
        authenticatorList option (order is respected)
        """
        availableAuths = getVidyoOptionValue("authenticatorList")
        foundAvatarDict = AuthenticatorMgr().getAvatarByLogin(accountName, availableAuths)

        for authName in availableAuths:
            foundAvatar = foundAvatarDict.get(authName, None)
            if foundAvatar:
                return foundAvatar
        else:
            return None