Commit 59b9daf8 authored by Sergio Bruni's avatar Sergio Bruni

commmit

parent df517069
14/02/2018
Valorizzando la chiave "station_list_file_base_name" con "NONE", la lista delle stazioni da scaricare viene ignorata e vengono automaticamente scaricatoi tutti i file trovati.
Valorizzando la chiave "station_list_file_base_name" con "NONE", la lista delle stazioni da scaricare viene ignorata e vengono automaticamente scaricati tutti i file trovati.
Questa funzionalità' è stata inserita per scaricare GATBO nella cartella temporanea, sulla quale dovrà essere applicato il merging ....
\ No newline at end of file
......@@ -162,7 +162,7 @@ class DaemonGPS(daemon.Daemon):
self.station_list = []
if not os.path.isfile(file_lista_stazioni):
self.logger.warning("[%s] Requested Stations list file [%s] NOT FOUND. ALL Station found will be NEWS" % (__name__, file_lista_stazioni))
self.logger.warning("[%s] Requested Stations list file [%s] NOT FOUND. ALL Station found will be NEW" % (__name__, file_lista_stazioni))
#self.error = "[%s] Stations list file [%s] NOT FOUND" % (__name__, file_lista_stazioni)
return
......@@ -463,6 +463,15 @@ class DaemonGPS(daemon.Daemon):
return
self.logger.warning("Found %d available stations" % (len(self.remote_stations_list)))
# If It is not defined a list of stations All remote stations will be downloaded
if self.conf_rete["station_list_file_base_name"] == "NONE":
for rs in self.remote_stations_list:
ls = {}
ls["codice"] = rs
ls["nome"] = rs
ls["link"] = ''
self.station_list.append(ls)
for index, stazione in enumerate(self.station_list):
# only for test purpose
......@@ -1868,7 +1877,7 @@ class DaemonGPSspingnss_deprecate(DaemonGPS):
return True
class DaemonGPSmetrica(DaemonGPS):
class DaemonGPSmetrica__DEPRECATED(DaemonGPS):
def __init__(self, conf_global, conf_rete, immediate=False):
DaemonGPS.__init__(self, conf_global, conf_rete, immediate)
......@@ -1962,9 +1971,9 @@ class DaemonGPSmetrica(DaemonGPS):
self.DBsetRunningFlag(False)
class DaemonGPSemilia(DaemonGPSmetrica):
class DaemonGPSemilia__DEPRECATED(DaemonGPSmetrica__DEPRECATED):
def __init__(self, conf_global, conf_rete, immediate=False):
DaemonGPSmetrica.__init__(self, conf_global, conf_rete, immediate)
DaemonGPSmetrica__DEPRECATED.__init__(self, conf_global, conf_rete, immediate)
class DaemonGPStrignet(DaemonGPS):
......
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