def GenerateAppID():
  f = open('etc/simian/settings.cfg', 'r')
  cp = ConfigParser.ConfigParser()
  cp.readfp(f)
  f.close()
  subdomain = cp.get('settings', 'subdomain')
  domain = cp.get('settings', 'domain')

  if domain == 'appspot.com':
    return subdomain
  else:
    return '%s:%s' % (domain, subdomain)
Returns a Google App Engine appid based on subdomain + domain configs.
dataset/ETHPy150Open google/simian/src/simian/util/appid_generator.py/GenerateAppID