def _get_version(self):
if "<STR_LIT:version>" in self.document.attrib:<EOL><INDENT>value = self.document.attrib["<STR_LIT:version>"].lower()<EOL>if value in allowed_versions[self.params['<STR_LIT>']]:<EOL><INDENT>self.params["<STR_LIT:version>"] = value<EOL><DEDENT>else:<EOL><INDENT>raise OWSInvalidParameterValue("<STR_LIT>" % value, value="<STR_LIT:version>")<EOL><DEDENT><DEDENT>elif self._get_request_type() == "<STR_LIT>":<EOL><INDENT>self.params["<STR_LIT:version>"] = None<EOL><DEDENT>else:<EOL><INDENT>raise OWSMissingParameterValue('<STR_LIT>', value="<STR_LIT:version>")<EOL><DEDENT>return self.params["<STR_LIT:version>"]<EOL>
Find requested version in POST request.