def review_published_cb(sender, user, review, to_submitter_only, request, **kwargs):
 siteconfig = SiteConfiguration.objects.get_current()
 if siteconfig.get(u'mail_send_review_mail'):
  mail_review(review, user, to_submitter_only, request)

def review_published_cb ( sender , user , review , to_submitter_only , request , ** kwargs ) : siteconfig = SiteConfiguration . objects . get_current ( ) if siteconfig . get ( u'mail_send_review_mail' ) : mail_review ( review , user , to_submitter_only , request )
send e-mail when a review is published .