def define_limit_offset(request):
	""" Define limit and offset variables from request.args """

	if request.args:
		try:
			limit = int(request.args['limit'])
			offset = int(request.args['offset'])
		except:
			# Default limit and offset
			limit = 12
			offset = 0
	else:
		# Default limit and offset
		limit = 12
		offset = 0

	return (limit, offset)