Esempio n. 1
0
def addGoodBanNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("This user has been banned from the shed.", "success")
	return addNoti(contentDict, newNoti)
Esempio n. 2
0
def addLeaveShedNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("You have left the shed.", "success")
	return addNoti(contentDict, newNoti)
Esempio n. 3
0
def addRequestApprovedNoti(contentDict):
    newNoti = notifUtil.createTempInfoNotif("Request approved.", "info")
    return addNoti(contentDict, newNoti)
Esempio n. 4
0
def addShedJoinRequestNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("Shed join request sent.", "success")
	return addNoti(contentDict, newNoti)
Esempio n. 5
0
def addGoodLogoutNoti(contentDict):
    newNoti = notifUtil.createTempInfoNotif(
        "Logout successful. Have a good day.", "success")
    return addNoti(contentDict, newNoti)
Esempio n. 6
0
def addShedJoinRequestNoti(contentDict):
    newNoti = notifUtil.createTempInfoNotif("Shed join request sent.",
                                            "success")
    return addNoti(contentDict, newNoti)
Esempio n. 7
0
def addGoodToolSubmissionNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("Your tool was successfully submitted!", "success")
	return addNoti(contentDict, newNoti)
Esempio n. 8
0
def addGoodBanNoti(contentDict):
    newNoti = notifUtil.createTempInfoNotif(
        "This user has been banned from the shed.", "success")
    return addNoti(contentDict, newNoti)
Esempio n. 9
0
def addGoodLoginNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("Login successful!", "success")
	return addNoti(contentDict, newNoti)
Esempio n. 10
0
def addGoodRegisterNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("Registration successful! You are now logged in.", "success")
	return addNoti(contentDict, newNoti)
Esempio n. 11
0
def addFailedLoginNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("Login failed."
					+ " Please check your username and password and try again.", "alert")
	return addNoti(contentDict, newNoti)
Esempio n. 12
0
def addRequestApprovedNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("Request approved.", "info")
	return addNoti(contentDict, newNoti)
Esempio n. 13
0
def addToolReturnedNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("Tool marked as returned.  The owner must confirm it has been returned.", "success")
	return addNoti(contentDict, newNoti)
Esempio n. 14
0
def addGoodLogoutNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("Logout successful. Have a good day.", "success")
	return addNoti(contentDict, newNoti)
Esempio n. 15
0
def addGoodShedCreationNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("Your shed was successfully created!", "success")
	return addNoti(contentDict, newNoti)
Esempio n. 16
0
def addGoodAdminRemoveNoti(contentDict):
    newNoti = notifUtil.createTempInfoNotif(
        "This user has been removed as an admin of the shed.", "success")
    return addNoti(contentDict, newNoti)
Esempio n. 17
0
def addGoodPasswordChangeNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("Password changed successfully.", "success")
	return addNoti(contentDict, newNoti)
Esempio n. 18
0
def addLeaveShedNoti(contentDict):
    newNoti = notifUtil.createTempInfoNotif("You have left the shed.",
                                            "success")
    return addNoti(contentDict, newNoti)
Esempio n. 19
0
def addGoodAccountUpdateNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("Account information updated successfully.", "success") 
	return addNoti(contentDict, newNoti)
Esempio n. 20
0
def addBorrowRequestNoti(contentDict):
    newNoti = notifUtil.createTempInfoNotif("Borrow request sent.", "success")
    return addNoti(contentDict, newNoti)
Esempio n. 21
0
def addGoodShedEditNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("Shed information updated successfully.", "success")
	return addNoti(contentDict, newNoti)
Esempio n. 22
0
def addToolReturnedNoti(contentDict):
    newNoti = notifUtil.createTempInfoNotif(
        "Tool marked as returned.  The owner must confirm it has been returned.",
        "success")
    return addNoti(contentDict, newNoti)
Esempio n. 23
0
def addGoodAdminRemoveNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("This user has been removed as an admin of the shed.", "success")
	return addNoti(contentDict, newNoti)
Esempio n. 24
0
def addFailedLoginNoti(contentDict):
    newNoti = notifUtil.createTempInfoNotif(
        "Login failed." +
        " Please check your username and password and try again.", "alert")
    return addNoti(contentDict, newNoti)
Esempio n. 25
0
def addBorrowRequestNoti(contentDict):
	newNoti = notifUtil.createTempInfoNotif("Borrow request sent.", "success")
	return addNoti(contentDict, newNoti)