def notify_new_contributor(unit, user):
 mails = []
 subscriptions = Profile.objects.subscribed_new_contributor(unit.translation.subproject.project, unit.translation.language, user)
 for subscription in subscriptions:
  mails.append(subscription.notify_new_contributor(unit.translation, user))
 send_mails(mails)

def notify_new_contributor ( unit , user ) : mails = [ ] subscriptions = Profile . objects . subscribed_new_contributor ( unit . translation . subproject . project , unit . translation . language , user ) for subscription in subscriptions : mails . append ( subscription . notify_new_contributor ( unit . translation , user ) ) send_mails ( mails )
notify about new contributor .