@staticmethod	
	def getAndCheckActionByUUID(uuid):
		actions = Action.objects.filter (uuid = uuid)
		if actions.count() ==  1:
			return actions[0]
		elif actions.count() == 0:
			logging.error("Action with uuid %s does not exist" % uuid)
			raise Exception("Action with uuid %s does not exist" % uuid)
		elif actions.count() > 1:
			logging.error("Action with uuid %s does not exist" % uuid)
			raise Exception("More than one Action with uuid %s" % uuid)
dataset/ETHPy150Open fp7-ofelia/ocf/vt_manager/src/python/vt_manager/models/Action.py/Action.getAndCheckActionByUUID/original