Author: brosner
Date: Mon Oct 13 15:01:00 2008
New Revision: 1038
Modified:
trunk/apps/local_apps/tribes/views.py
Log:
Use the new notification.send interface to allow per-call queue overrides.
Reverted tribe friend notification to fallback to global default.
Modified: trunk/apps/local_apps/tribes/views.py
==============================================================================
--- trunk/apps/local_apps/tribes/views.py (original)
+++ trunk/apps/local_apps/tribes/views.py Mon Oct 13 15:01:00 2008
@@ -48,9 +48,9 @@
tribe.save()
if notification:
# @@@ might be worth having a shortcut for sending to
all users
-
notification.queue(User.objects.all(), "tribes_new_tribe", {"tribe": tribe})
+
notification.send(User.objects.all(), "tribes_new_tribe", {"tribe": tribe},
queue=True)
if friends: # @@@ might be worth having a shortcut for
sending to all friends
- notification.queue((x['friend'] for x in
Friendship.objects.friends_for_user(tribe.creator)), "tribes_friend_tribe",
{"tribe": tribe})
+ notification.send((x['friend'] for x in
Friendship.objects.friends_for_user(tribe.creator)), "tribes_friend_tribe",
{"tribe": tribe})
#return render_to_response("base.html", {
#}, context_instance=RequestContext(request))
return HttpResponseRedirect(tribe.get_absolute_url())
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---