def ThrottleRemoteDatastore(throttle, remote_datastore_stub=None):
 if (not remote_datastore_stub):
  remote_datastore_stub = apiproxy_stub_map.apiproxy.GetStub('datastore_v3')
 if (not isinstance(remote_datastore_stub, remote_api_stub.RemoteDatastoreStub)):
  raise remote_api_stub.ConfigurationError('remote_api is not configured.')
 throttler = DatastoreThrottler(throttle)
 remote_datastore_stub._PreHookHandler = throttler.PrehookHandler
 remote_datastore_stub._PostHookHandler = throttler.PosthookHandler

def ThrottleRemoteDatastore ( throttle , remote_datastore_stub = None ) : if ( not remote_datastore_stub ) : remote_datastore_stub = apiproxy_stub_map . apiproxy . GetStub ( 'datastore_v3' ) if ( not isinstance ( remote_datastore_stub , remote_api_stub . RemoteDatastoreStub ) ) : raise remote_api_stub . ConfigurationError ( 'remote_api is not configured.' ) throttler = DatastoreThrottler ( throttle ) remote_datastore_stub . _PreHookHandler = throttler . PrehookHandler remote_datastore_stub . _PostHookHandler = throttler . PosthookHandler
install the given throttle for the remote datastore stub .