def checkLanguage(self): """ Check optional language parameter. """ if "language" in self.unparsedInputs: value=Lang.getCode(self.unparsedInputs["language"].lower()) if value not in self.wps.languages: raise InvalidParameterValue("language") else: self.inputs["language"] = value else: self.inputs["language"] = pywps.DEFAULT_LANG
def checkLanguage(self): """ Check optional language parameter. """ if "language" in self.unparsedInputs: value = Lang.getCode(self.unparsedInputs["language"].lower()) if value not in self.wps.languages: raise InvalidParameterValue("language") else: self.inputs["language"] = value else: self.inputs["language"] = pywps.DEFAULT_LANG
def checkLanguage(self, node): """ Check optional language parameter. """ if node.hasAttribute("language"): value = Lang.getCode(node.getAttribute("language").lower()) if value not in self.wps.languages: raise pywps.InvalidParameterValue("language") else: self.inputs["language"] = value else: self.inputs["language"] = pywps.DEFAULT_LANG
def checkLanguage(self, node): """ Check optional language parameter. """ if node.hasAttribute("language"): value=Lang.getCode(node.getAttribute("language").lower()) if value not in self.wps.languages: raise pywps.InvalidParameterValue("language") else: self.inputs["language"] = value else: self.inputs["language"] = pywps.DEFAULT_LANG