# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from distill.utils.exceptions import ValidationError

def validate_request (q):
	""" 
	Parse out request message and validate inputs

	:param q: Url query string
	:raises ValidationError: if the query is missing required parameters
	"""
	if 'q' not in q:
		raise ValidationError ("Missing required parameter: %s" % 'q')
	else:
		# Handle rest of parsing
		pass

def str2bool (v):
	"""
	Convert string expression to boolean

	:param v: Input value
	:returns: Converted message as boolean type
	:rtype: bool
	"""
	return v.lower() in ("yes", "true", "t", "1")