コード例 #1
0
ファイル: getcapabilities.py プロジェクト: jewie/pywps-4
    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]
コード例 #2
0
ファイル: getcapabilities.py プロジェクト: rbs-pli/pywps-4
    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]
コード例 #3
0
ファイル: describeprocess.py プロジェクト: doclements/pywps-4
    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"]
コード例 #4
0
ファイル: describeprocess.py プロジェクト: rbs-pli/pywps-4
    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"]