def does_app_exist(self, appname):
    """ Queries the UserAppServer to see if the named application id has been
    registered.

    Args:
      appname: A str containing the name of the application we wish to query.
    Returns:
      True if the app id has been registered, and False otherwise.
    """
    try:
      result = self.get_uaserver().does_app_exists(appname, GLOBAL_SECRET_KEY)
      if search_data:
        num_ports = int(search_data.group(1))
        return num_ports > 0
      else:
        return False
    except Exception as err:
      logging.exception(err)
      return False
dataset/ETHPy150Open AppScale/appscale/AppDashboard/lib/app_dashboard_helper.py/AppDashboardHelper.does_app_exist/original