Esempio n. 1
0
 def test_AllActivrProfileNotifs(self):
     """
     THIS NEEDS TO BE MODIFIED FOR RESPONSE NOTIFICATIONS
     """
     self.assertIn(
         self.genInfoNotif,
         notifUtils.getAllActiveProfileNotifs(
             profUtils.getProfileFromUsername("TaikhoomAttar")))
Esempio n. 2
0
def getNotifications(request):#returns a dict with the userProfile and notifs values filled
	if request.user.is_anonymous():#anon no notis
		return None
	userProfile = profileUtil.getProfileFromUser(request.user)
	notifs = notifUtil.getAllActiveProfileNotifs(userProfile)
	context = {}
	context['currentUserProfile'] = userProfile
	context['notifs'] = notifs
	return context
Esempio n. 3
0
def getNotifications(
        request
):  #returns a dict with the userProfile and notifs values filled
    if request.user.is_anonymous():  #anon no notis
        return None
    userProfile = profileUtil.getProfileFromUser(request.user)
    notifs = notifUtil.getAllActiveProfileNotifs(userProfile)
    context = {}
    context['currentUserProfile'] = userProfile
    context['notifs'] = notifs
    return context
Esempio n. 4
0
 def test_AllActivrProfileNotifs (self):
     """
     THIS NEEDS TO BE MODIFIED FOR RESPONSE NOTIFICATIONS
     """
     self.assertIn (self.genInfoNotif, notifUtils.getAllActiveProfileNotifs (profUtils.getProfileFromUsername ("TaikhoomAttar")))