def _GetAppId(request):
  if request.has_app_id():
    return request.app_id()
  else:
    return None
Returns the app id to use for the given request.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/taskqueue/taskqueue_stub.py/_GetAppId