def set_from_xml(self, root): """Set local values from xml encoded request (using objectify) """ global namespaces Request.set_from_xml(self, root) if hasattr(root, "AcceptVersions"): self.acceptversions = root.AcceptVersions.xpath("ows:Version", namespaces=namespaces) self.version = self.acceptversions[0]
def set_from_xml(self, root): """Set local values from xml encoded request (using objectify) """ global namespaces Request.set_from_xml(self, root) if hasattr(root, "AcceptVersions"): self.acceptversions = root.AcceptVersions.xpath( "ows:Version", namespaces=namespaces) self.version = self.acceptversions[0]
def set_from_xml(self,root): """Set local values from xml encoded request (using objectify) """ global namespaces Request.set_from_xml(self,root) self.identifiers = [] [self.__parse_identifier(i) for i in root.xpath("ows:Identifier", namespaces = namespaces)] self.version = root.attrib["version"]
def set_from_xml(self, root): """Set local values from xml encoded request (using objectify) """ global namespaces Request.set_from_xml(self, root) self.identifiers = [] [ self.__parse_identifier(i) for i in root.xpath("ows:Identifier", namespaces=namespaces) ] self.version = root.attrib["version"]