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