def __load_settings_from_dict(self, settings):
    '\n        Loads settings info from a settings Dict\n\n        :param settings: SAML Toolkit Settings\n        :type settings: dict\n\n        :returns: True if the settings info is valid\n        :rtype: boolean\n        '
    errors = self.check_settings(settings)
    if (len(errors) == 0):
        self.__errors = []
        self.__sp = settings['sp']
        self.__idp = settings.get('idp', {})
        self.__strict = settings.get('strict', False)
        self.__debug = settings.get('debug', False)
        self.__security = settings.get('security', {})
        self.__contacts = settings.get('contactPerson', {})
        self.__organization = settings.get('organization', {})
        self.__add_default_values()
        return True
    self.__errors = errors
    return False
Loads settings info from a settings Dict

:param settings: SAML Toolkit Settings
:type settings: dict

:returns: True if the settings info is valid
:rtype: boolean
def __load_settings_from_dict(self, settings):
    '\n        Loads settings info from a settings Dict\n\n        :param settings: SAML Toolkit Settings\n        :type settings: dict\n\n        :returns: True if the settings info is valid\n        :rtype: boolean\n        '
    errors = self.check_settings(settings)
    if (len(errors) == 0):
        self.__errors = []
        self.__sp = settings['sp']
        self.__idp = settings.get('idp', {})
        self.__strict = settings.get('strict', False)
        self.__debug = settings.get('debug', False)
        self.__security = settings.get('security', {})
        self.__contacts = settings.get('contactPerson', {})
        self.__organization = settings.get('organization', {})
        self.__add_default_values()
        return True
    self.__errors = errors
    return False