Beispiel #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
Beispiel #2
0
 def _checkParams(self):
     """ Checks for external authenticators
         For now the underlying MaKaC.common.search code only supports
         1 external authenticator, so we just see if a proper external authenticator is present or not
     """
     self._searchExt = False
     for authenticatorName in AuthenticatorMgr.getInstance().getAuthenticatorIdList():
         authParamName = "searchExternal-" + authenticatorName
         if authParamName in self._params and self._params[authParamName]:
             self._searchExt = True
             break
Beispiel #3
0
 def _checkParams(self):
     """ Checks for external authenticators
         For now the underlying MaKaC.common.search code only supports
         1 external authenticator, so we just see if a proper external authenticator is present or not
     """
     self._searchExt = False
     for authenticatorName in AuthenticatorMgr().getAuthenticatorIdList():
         authParamName = "searchExternal-" + authenticatorName
         if authParamName in self._params and self._params[authParamName]:
             self._searchExt = True
             break