def __init__(self, logs_path, cfg, www_path, move_path, user='', password=''): #WebServicesManager.__init__(self, user, password) self.logs_path = logs_path self.www_path = www_path self.move_path = move_path self.querys_state = None self.states_filename = path.join(self.logs_path, 'querys_state.db') xmlrpc.XMLRPC.__init__(self) self.allowNone = None self.cfg = cfg # archivo de configuracion self.services = DicomServices() self.dicom_server = cfg.get("raddress", 'localhost') self.port = int(cfg.get("rport", 1104)) self.called_aet = cfg.get("raet", 'IMGSVR') self.local_port = int(cfg.get("lport", 3000)) self.calling_aet = cfg.get("aet", 'any') self.http_port = cfg.get("port", 80) self.hostname = os.uname()[ 1] #"10.30.131.70" #!!! os.uname()[1] retorna el hostname
def __init__(self, logs_path, cfg, user='', password=''): #!!! WebServicesManager.__init__(self, user, password) self.logs_path = logs_path self.global_cache = path.join(logs_path, "global_search_cache") if not path.isdir(self.global_cache): os.mkdir(self.global_cache) xmlrpc.XMLRPC.__init__(self) self.allowNone = None self.cfg = cfg # archivo de configuracion self.services = DicomServices() self.dicom_server = cfg.get("raddress", 'localhost') self.port = int(cfg.get("rport", 1104)) self.called_aet = cfg.get("raet", 'IMGSVR') self.local_port = int(cfg.get("lport", 3000)) self.calling_aet = cfg.get("aet", 'any')