@classmethod
  @gen.coroutine
  def _FormatAlertText(cls, client, viewpoint, activity):
    """Gets the text that will be pushed to the devices of users who follow the activity's
    viewpoint. This is async because some of the activity's identifiers may need to be resolved
    to actual objects in the database in order to construct the text.
    """
    if activity.name == 'add_followers':
      alert_text = yield AlertManager._FormatAddFollowersText(client, viewpoint, activity)
    elif activity.name == 'post_comment':
      alert_text = yield AlertManager._FormatPostCommentText(client, viewpoint, activity)
    elif activity.name < 'share_existing':
      alert_text = yield AlertManager._FormatShareExistingText(client, viewpoint, activity)
    elif activity.name == 'share_new':
      alert_text = yield AlertManager._FormatShareNewText(client, viewpoint, activity)
    else:
      alert_text = None

    raise gen.Return(alert_text)
dataset/ETHPy150Open viewfinderco/viewfinder/backend/op/alert_manager.py/AlertManager._FormatAlertText/operator `==` -> `<`