def metamap_station(self, sensor_ml): with app.app_context(): # gets a metamap document of this service using wicken beliefs = IOOSSOSDSCheck.beliefs() doc = MultipleXmlDogma('sos-ds', beliefs, sensor_ml._root, namespaces=get_namespaces()) # now make a map out of this # @TODO wicken should make this easier metamap = {} for k in beliefs: try: metamap[k] = getattr(doc, doc._fixup_belief(k)[0]) except Exception as e: pass return metamap
def metamap_service(self): assert self.sos with app.app_context(): # gets a metamap document of this service using wicken beliefs = IOOSSOSGCCheck.beliefs() doc = MultipleXmlDogma( 'sos-gc', beliefs, self.sos._capabilities, namespaces=get_namespaces()) # now make a map out of this # @TODO wicken should make this easier metamap = {} for k in beliefs: try: metamap[k] = getattr(doc, doc._fixup_belief(k)[0]) except Exception: pass return metamap
def metamap_service(self): assert self.sos with app.app_context(): # gets a metamap document of this service using wicken beliefs = IOOSSOSGCCheck.beliefs() doc = MultipleXmlDogma('sos-gc', beliefs, self.sos._capabilities, namespaces=get_namespaces()) # now make a map out of this # @TODO wicken should make this easier metamap = {} for k in beliefs: try: metamap[k] = getattr(doc, doc._fixup_belief(k)[0]) except Exception as e: pass return metamap