diff --git a/scripts/istsos2istsos.py b/scripts/istsos2istsos.py index feb0208c..d9c8dee8 100755 --- a/scripts/istsos2istsos.py +++ b/scripts/istsos2istsos.py @@ -164,7 +164,7 @@ def log(message): ssrv, procedure ), auth=(suser, spwd), verify=False) - print(res.text) + sdata = res.json() if sdata['success'] is False: raise Exception( diff --git a/scripts/istsosutils.py b/scripts/istsosutils.py index 711a998a..3a2f2f79 100755 --- a/scripts/istsosutils.py +++ b/scripts/istsosutils.py @@ -102,7 +102,7 @@ def getSOSProceduresList(self): } print("Requesting a getCapabilitie: %s/%s" % (self.host, self.service)) - print(params) + # print(params) res = req.get("%s/%s" % ( self.host, self.service), params=params, auth=self.auth) @@ -118,8 +118,8 @@ def getSOSProceduresList(self): procedures = {} for offering in offerings: - offeringName = offering.find( - "{%s}name" % (gcNs['gml'])).text.split(":")[-1] + # offeringName = offering.find( + # "{%s}name" % (gcNs['gml'])).text.split(":")[-1] # For each offering get the procedures elProcs = offering.findall("{%s}procedure" % (gcNs['sos'])) @@ -138,7 +138,6 @@ def getProcedures(self): self.host, self.service ), auth=self.auth ) - print(res) jsonRes = res.json() if not jsonRes['success']: raise Exception( @@ -150,8 +149,8 @@ def getProcedures(self): procedure.merge(data) procedures.append(procedure) - print("Procedures list result:") - print(" - Found: %s procedures" % len(procedures)) + # print("Procedures list result:") + # print(" - Found: %s procedures" % len(procedures)) return procedures