'This method sets all the options that are configured using the user
interface generated by the framework using the result of get_options().
:param options_list: An OptionList with the option objects for a plugin.
:return: No value is returned.'

def set_options(self, options_list):

    get_opt_value = (lambda n: options_list[n].get_value())
    self.set_configured_timeout(get_opt_value('timeout'))
    bauth_domain = get_opt_value('basic_auth_domain')
    bauth_user = get_opt_value('basic_auth_user')
    bauth_pass = get_opt_value('basic_auth_passwd')
    if ((bauth_domain != cfg['basic_auth_domain']) or (bauth_user != cfg['basic_auth_user']) or (bauth_pass != cfg['basic_auth_passwd'])):
        try:
            bauth_domain = (URL(bauth_domain) if bauth_domain else '')
        except ValueError:
            bauth_domain = None
        self.set_basic_auth(bauth_domain, bauth_user, bauth_pass)
    ntlm_auth_domain = get_opt_value('ntlm_auth_domain')
    ntlm_auth_user = get_opt_value('ntlm_auth_user')
    ntlm_auth_passwd = get_opt_value('ntlm_auth_passwd')
    ntlm_auth_url = get_opt_value('ntlm_auth_url')
    if ((ntlm_auth_domain != cfg['ntlm_auth_domain']) or (ntlm_auth_user != cfg['ntlm_auth_user']) or (ntlm_auth_passwd != cfg['ntlm_auth_passwd']) or (ntlm_auth_url != cfg['ntlm_auth_url'])):
        self.set_ntlm_auth(ntlm_auth_url, ntlm_auth_domain, ntlm_auth_user, ntlm_auth_passwd)
    proxy_address = get_opt_value('proxy_address')
    proxy_port = get_opt_value('proxy_port')
    if ((proxy_address != cfg['proxy_address']) or (proxy_port != cfg['proxy_port'])):
        self.set_proxy(proxy_address, proxy_port)
    self.set_cookie_jar_file(get_opt_value('cookie_jar_file'))
    self.set_headers_file(get_opt_value('headers_file'))
    self.set_user_agent(get_opt_value('user_agent'))
    self.set_rand_user_agent(get_opt_value('rand_user_agent'))
    cfg['ignore_session_cookies'] = get_opt_value('ignore_session_cookies')
    self.set_max_file_size(get_opt_value('max_file_size'))
    self.set_max_http_retries(get_opt_value('max_http_retries'))
    self.set_max_requests_per_second(get_opt_value('max_requests_per_second'))
    self.set_url_parameter(get_opt_value('url_parameter'))
    cfg['never_404'] = get_opt_value('never_404')
    cfg['always_404'] = get_opt_value('always_404')
    cfg['string_match_404'] = get_opt_value('string_match_404')
