Example #1
0
def createShedRequestAction(shed, requester):
    newAction = Action(shed=shed,
                       requester=requester,
                       actionType="shed",
                       currrentState="userShedRequest")
    newAction.save()
    return newAction
Example #2
0
def createBorrowRequestAction(tool, requester):
    newAction = Action(tool=tool,
                       requester=requester,
                       actionType="tool",
                       currrentState="userBorrowRequest")
    newAction.save()
    utilities.actionManager.processActions()
    return newAction
Example #3
0
def createShedRequestAction(shed, requester):
    newAction = Action(shed=shed, requester=requester, actionType="shed", currrentState="userShedRequest")
    newAction.save()
    return newAction
Example #4
0
def createBorrowRequestAction(tool, requester):
    newAction = Action(tool=tool, requester=requester, actionType="tool", currrentState="userBorrowRequest")
    newAction.save()
    utilities.actionManager.processActions()
    return newAction