Beispiel #1
0
 def ActionToModel(action, hyperaction, save = "noSave" ):
     actionModel = Action()
     actionModel.hyperaction = hyperaction
     if not action.status:
         actionModel.status = 'QUEUED'
     else:
         actionModel.status = action.status
     actionModel.type = action.type_
     print "**************************************************", action.id
     actionModel.uuid = action.id
     print "***************************************************", save
     if save is "save":
         actionModel.save()
     return actionModel						
Beispiel #2
0
 def createNewAction(aType,status,objectUUID=None,description=""):
     return Action.constructor(aType,status,objectUUID,description)