def test_AllActivrProfileNotifs(self): """ THIS NEEDS TO BE MODIFIED FOR RESPONSE NOTIFICATIONS """ self.assertIn( self.genInfoNotif, notifUtils.getAllActiveProfileNotifs( profUtils.getProfileFromUsername("TaikhoomAttar")))
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
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
def test_AllActivrProfileNotifs (self): """ THIS NEEDS TO BE MODIFIED FOR RESPONSE NOTIFICATIONS """ self.assertIn (self.genInfoNotif, notifUtils.getAllActiveProfileNotifs (profUtils.getProfileFromUsername ("TaikhoomAttar")))