def notify_new_comment(unit, comment, user, report_source_bugs):
 mails = []
 subscriptions = Profile.objects.subscribed_new_comment(unit.translation.subproject.project, comment.language, user)
 for subscription in subscriptions:
  mails.append(subscription.notify_new_comment(unit, comment, user))
 if ((comment.language is None) and (report_source_bugs != u'')):
  send_notification_email(u'en', report_source_bugs, u'new_comment', unit.translation, {u'unit': unit, u'comment': comment, u'subproject': unit.translation.subproject}, user=user)
 send_mails(mails)

def notify_new_comment ( unit , comment , user , report_source_bugs ) : mails = [ ] subscriptions = Profile . objects . subscribed_new_comment ( unit . translation . subproject . project , comment . language , user ) for subscription in subscriptions : mails . append ( subscription . notify_new_comment ( unit , comment , user ) ) if ( ( comment . language is None ) and ( report_source_bugs != u'' ) ) : send_notification_email ( u'en' , report_source_bugs , u'new_comment' , unit . translation , { u'unit' : unit , u'comment' : comment , u'subproject' : unit . translation . subproject } , user = user ) send_mails ( mails )
notify about new comment .