def ThrottledHttpRpcServerFactory(throttle):

  def MakeRpcServer(*args, **kwargs):
    """Factory to produce a ThrottledHttpRpcServer.

    Args:
      args: Positional args to pass to ThrottledHttpRpcServer.
      kwargs: Keyword args to pass to ThrottledHttpRpcServer.

    Returns:
      A ThrottledHttpRpcServer instance.
    """
    kwargs['account_type'] = 'HOSTED_OR_GOOGLE'
    kwargs['save_cookies'] = True
    rpc_server = ThrottledHttpRpcServer(throttle, *args, **kwargs)
    return rpc_server
  return MakeRpcServer
Create a factory to produce ThrottledHttpRpcServer for a given throttle.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/remote_api/throttle.py/ThrottledHttpRpcServerFactory