Esempio n. 1
0
def set_tokens():
    config = Config(getcwd()+'/tasks/app.config')
    dicts = config.get_section_options_value('users')
    user_token_url = config.get_config_value('urls','URL_USER_LOGIN')
    r = Redis(host='localhost',port=6379,db=1)
    d = Datas(user_token_url)

    for k,v in dicts.items():
	    token = d.get_usertoken(k,v)
	    r.set(k,token)
Esempio n. 2
0
def  test_config_options():
    c = Config('app.config')
    return c.get_section_options_value('users')