From ea9ad001a1116797bce11454fa4f5af582559892 Mon Sep 17 00:00:00 2001 From: Samuel Marks Date: Mon, 22 Dec 2014 17:38:21 +1100 Subject: [PATCH 1/2] Signature of `dataset.get_dataset` has changed, modified documentation to reflect this. --- README.rst | 2 +- docs/_components/datastore-getting-started.rst | 2 +- docs/_components/datastore-quickstart.rst | 2 +- docs/index.rst | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index f1f7f996fea7..0d4f68181273 100644 --- a/README.rst +++ b/README.rst @@ -65,7 +65,7 @@ with the Cloud Datastore using this Client Library. .. code:: python from gcloud import datastore - dataset = datastore.get_dataset('dataset-id-here') + dataset = datastore.get_dataset('dataset-id-here', email, private_key_path) # Then do other things... query = dataset.query().kind('EntityKind') entity = dataset.entity('EntityKind') diff --git a/docs/_components/datastore-getting-started.rst b/docs/_components/datastore-getting-started.rst index c53e1b6b3541..bb8a06c10228 100644 --- a/docs/_components/datastore-getting-started.rst +++ b/docs/_components/datastore-getting-started.rst @@ -38,7 +38,7 @@ Add some data to your dataset Open a Python console and... >>> from gcloud import datastore - >>> dataset = datastore.get_dataset('') + >>> dataset = datastore.get_dataset('', '', '>> dataset.query().fetch() [] >>> entity = dataset.entity('Person') diff --git a/docs/_components/datastore-quickstart.rst b/docs/_components/datastore-quickstart.rst index bb53731f515b..436ddc885e73 100644 --- a/docs/_components/datastore-quickstart.rst +++ b/docs/_components/datastore-quickstart.rst @@ -68,6 +68,6 @@ you can create entities and save them:: >>> from gcloud import datastore >>> from gcloud.datastore import demo - >>> dataset = datastore.get_dataset(demo.DATASET_ID) + >>> dataset = datastore.get_dataset(demo.DATASET_ID, demo.CLIENT_EMAIL, demo.KEY_FILENAME) ---- diff --git a/docs/index.rst b/docs/index.rst index 28865c028fc6..dbcd2c79a1b3 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -29,7 +29,7 @@ Cloud Datastore .. code-block:: python from gcloud import datastore - dataset = datastore.get_dataset('') + dataset = datastore.get_dataset('', '', '') entity = dataset.entity('Person') entity['name'] = 'Your name' entity['age'] = 25 From 6173687c0dcad0f8515ee77dc55f5af45cb99c88 Mon Sep 17 00:00:00 2001 From: Samuel Marks Date: Mon, 22 Dec 2014 17:43:45 +1100 Subject: [PATCH 2/2] Signature of `dataset.get_dataset` has changed, modified documentation to reflect this. --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 0d4f68181273..c0685093003b 100644 --- a/README.rst +++ b/README.rst @@ -65,7 +65,7 @@ with the Cloud Datastore using this Client Library. .. code:: python from gcloud import datastore - dataset = datastore.get_dataset('dataset-id-here', email, private_key_path) + dataset = datastore.get_dataset('dataset-id-here', 'email-here', 'private_key_path-here') # Then do other things... query = dataset.query().kind('EntityKind') entity = dataset.entity('EntityKind')