def __init__(self, app_id): apiproxy_stub.APIProxyStub.__init__(self, SERVICE_NAME) self.__app_id = app_id self.__entity_converter = datastore_pbs.get_entity_converter() self.__service_converter = datastore_stub_util.get_service_converter() self.__service_validator = datastore_v4_validator.get_service_validator( )
def __init__(self, app_id): assert _CLOUD_DATASTORE_ENABLED, ( "Cannot initialize the Cloud Datastore" " stub without installing the Cloud" " Datastore client libraries." ) apiproxy_stub.APIProxyStub.__init__(self, SERVICE_NAME) self.__app_id = app_id self._id_resolver = _StubIdResolver([app_id]) self.__entity_converter = datastore_pbs.get_entity_converter(self._id_resolver) self.__service_converter = datastore_stub_util.get_service_converter(self._id_resolver) self.__service_validator = cloud_datastore_validator.get_service_validator(self._id_resolver)
def __init__(self, app_id): assert _CLOUD_DATASTORE_ENABLED, ( 'Cannot initialize the Cloud Datastore' ' stub without installing the Cloud' ' Datastore client libraries.') apiproxy_stub.APIProxyStub.__init__(self, SERVICE_NAME) self.__app_id = app_id id_resolver = _StubIdResolver([app_id]) self.__entity_converter = datastore_pbs.get_entity_converter( id_resolver) self.__service_converter = datastore_stub_util.get_service_converter( id_resolver) self.__service_validator = cloud_datastore_validator.get_service_validator( )
def __init__(self, app_id): apiproxy_stub.APIProxyStub.__init__(self, SERVICE_NAME) self.__app_id = app_id self.__entity_converter = datastore_pbs.get_entity_converter() self.__service_converter = datastore_stub_util.get_service_converter() self.__service_validator = datastore_v4_validator.get_service_validator()