Commit fcbc7f0c authored by bliss administrator's avatar bliss administrator

created new 'connection' module

moved Connection class to 'connection' module
removed Client class, use client module namespace instead
parent 909b6f24
This diff is collapsed.
This diff is collapsed.
from .conductor.client import Client
from .conductor import client
import weakref
import pickle
import redis
def get_cache():
return Client.get_cache(db=0)
return client.get_cache(db=0)
def boolify(s,**keys):
if s == 'True' or s == 'true':
......
import os
import yaml
import weakref
from .conductor.client import Client
from .conductor import client
CONFIG = None
def load_cfg(filename):
cfg_string = Client.get_config_file(filename)
cfg_string = client.get_config_file(filename)
return yaml.load(cfg_string)
def load_cfg_fromstring(cfg_string):
......@@ -129,7 +129,7 @@ class Config(object):
self._clear_instances()
path2file = Client.get_config_db_files(base_path = base_path,
path2file = client.get_config_db_files(base_path = base_path,
timeout = timeout)
for path, file_content in path2file:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment