app/soc/logic/helper/notifications.py
changeset 1894 da52a47b5a6b
parent 1893 bcb73072aa66
child 2068 f5e8fbbd3bea
equal deleted inserted replaced
1893:bcb73072aa66 1894:da52a47b5a6b
   128 
   128 
   129   sendNotification(to_user, None, message_properties, subject, template)
   129   sendNotification(to_user, None, message_properties, subject, template)
   130 
   130 
   131 
   131 
   132 def sendNewReviewNotification(to_user, review, reviewed_name, redirect_url):
   132 def sendNewReviewNotification(to_user, review, reviewed_name, redirect_url):
   133   """Sends out a notification to the follower with the given redirect URL.
   133   """Sends out a notification to alert the user of a new Review.
   134 
   134 
   135   Args:
   135   Args:
   136     to_user: The user who should receive a notification
   136     to_user: The user who should receive a notification
   137     review: The review which triggers this notification
   137     review: The review which triggers this notification
   138     reviewed_name: Name of the entity reviewed
   138     reviewed_name: Name of the entity reviewed