Esempio n. 1
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]
Esempio n. 2
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]
Esempio n. 3
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"]
Esempio n. 4
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"]