Title: Entities loaded in gcloud.datastore don't have a dataset · Issue #86 · googleapis/google-cloud-python · GitHub
Open Graph Title: Entities loaded in gcloud.datastore don't have a dataset · Issue #86 · googleapis/google-cloud-python
X Title: Entities loaded in gcloud.datastore don't have a dataset · Issue #86 · googleapis/google-cloud-python
Description: >>> dataset = demo.get_dataset() >>> query = dataset.query() >>> entity = query.fetch()[0] >>> entity.delete() ... Traceback (most recent call last): File "
Open Graph Description: >>> dataset = demo.get_dataset() >>> query = dataset.query() >>> entity = query.fetch()[0] >>> entity.delete() ... Traceback (most recent call last): File "
X Description: >>> dataset = demo.get_dataset() >>> query = dataset.query() >>> entity = query.fetch()[0] >>> entity.delete() ... Traceback (most recent call last): File "...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/86
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Entities loaded in gcloud.datastore don't have a dataset","articleBody":"``` python\n\u003e\u003e\u003e dataset = demo.get_dataset()\n\u003e\u003e\u003e query = dataset.query()\n\u003e\u003e\u003e entity = query.fetch()[0]\n\u003e\u003e\u003e entity.delete()\n... \nTraceback (most recent call last):\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\n File \"gcloud/datastore/entity.py\", line 206, in delete\n self.dataset().connection().delete_entity(\nAttributeError: 'NoneType' object has no attribute 'delete_entity'\n```\n\nThis is because we're creating entities from the protobufs, with the proper `dataset_id` but not a true reference to the Dataset object (which has a pointer to the connection).\n","author":{"url":"https://github.com/jgeewax","@type":"Person","name":"jgeewax"},"datePublished":"2014-04-22T16:51:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/86/google-cloud-python/issues/86"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6c4a874b-86d8-cd2c-b87e-81f986512029 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D7AE:A7ECB:37AC3A:4B38F4:6A4D3868 |
| html-safe-nonce | 495827fa41f07961cb871ba027598b13308b127b4821232825544dbe2340a43a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0FFOkE3RUNCOjM3QUMzQTo0QjM4RjQ6NkE0RDM4NjgiLCJ2aXNpdG9yX2lkIjoiNDQ0NDA0NTU3ODI2Nzg2NzI0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 21741dc67cdad6db883024ded8c5683ae44a5847be304132a84927931a363a04 |
| hovercard-subject-tag | issue:31990344 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/86/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d3a32c9dcdb857a455ac38487233ac1f56e7691d144fbebaf183087dc677db83/googleapis/google-cloud-python/issues/86 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d3a32c9dcdb857a455ac38487233ac1f56e7691d144fbebaf183087dc677db83/googleapis/google-cloud-python/issues/86 |
| og:image:alt | >>> dataset = demo.get_dataset() >>> query = dataset.query() >>> entity = query.fetch()[0] >>> entity.delete() ... Traceback (most recent call last): File " |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jgeewax |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width