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