def setType(self, type):
		if type not in self.__possibleTypes:
			raise Exception("Action type not valid")
		self.type = type
		self.save()
dataset/ETHPy150Open fp7-ofelia/ocf/vt_manager/src/python/vt_manager/models/Action.py/Action.setType/original