

@classmethod
@gen.coroutine
def _FormatAlertEmail(cls, client, recipient_id, viewpoint, activity):
    "Gets the arguments to the email that will be sent to web-only customers who follow the\n    activity's viewpoint.\n    "
    if ((activity.name == 'share_new') or (activity.name == 'add_followers')):
        email_args = (yield AlertManager._FormatConversationEmail(client, recipient_id, viewpoint, activity))
    else:
        email_args = None
    raise gen.Return(email_args)

dataset/ETHPy150Open viewfinderco/viewfinder/backend/op/alert_manager.py AlertManager._FormatAlertEmail/original