app/soc/logic/helper/notifications.py
changeset 2171 83d96aadd228
parent 2170 cec46675f866
child 2319 3eee2308f1dd
equal deleted inserted replaced
2170:cec46675f866 2171:83d96aadd228
   123       }
   123       }
   124 
   124 
   125   template = DEF_NEW_GROUP_TEMPLATE
   125   template = DEF_NEW_GROUP_TEMPLATE
   126 
   126 
   127   for to in [entity.applicant, entity.backup_admin]:
   127   for to in [entity.applicant, entity.backup_admin]:
       
   128     if not to:
       
   129       continue
       
   130 
   128     sendNotification(to, None, message_properties, subject, template)
   131     sendNotification(to, None, message_properties, subject, template)
   129 
   132 
   130 
   133 
   131 def sendNewReviewNotification(to_user, review, reviewed_name, redirect_url):
   134 def sendNewReviewNotification(to_user, review, reviewed_name, redirect_url):
   132   """Sends out a notification to alert the user of a new Review.
   135   """Sends out a notification to alert the user of a new Review.