def createShedRequestAction(shed, requester): newAction = Action(shed=shed, requester=requester, actionType="shed", currrentState="userShedRequest") newAction.save() return newAction
def createBorrowRequestAction(tool, requester): newAction = Action(tool=tool, requester=requester, actionType="tool", currrentState="userBorrowRequest") newAction.save() utilities.actionManager.processActions() return newAction