Title: A query object has no cursor · Issue #643 · GoogleCloudPlatform/python-docs-samples · GitHub
Open Graph Title: A query object has no cursor · Issue #643 · GoogleCloudPlatform/python-docs-samples
X Title: A query object has no cursor · Issue #643 · GoogleCloudPlatform/python-docs-samples
Description: In which file did you encounter the issue? https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/standard/ndb/schema_update/main.py#L127 Did you change the file? If so, how? We get the cursor from the following...
Open Graph Description: In which file did you encounter the issue? https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/standard/ndb/schema_update/main.py#L127 Did you change the file? If so, h...
X Description: In which file did you encounter the issue? https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/standard/ndb/schema_update/main.py#L127 Did you change the file? If so, h...
Opengraph URL: https://github.com/GoogleCloudPlatform/python-docs-samples/issues/643
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"A query object has no cursor","articleBody":"## In which file did you encounter the issue?\r\nhttps://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/standard/ndb/schema_update/main.py#L127\r\n\r\n\r\n### Did you change the file? If so, how?\r\nWe get the cursor from the following line: https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/standard/ndb/schema_update/main.py#L105 So I changed the file to use that. \r\n\r\n## Describe the issue\r\nReturns the following error: `'Query' object has no attribute 'cursor'`\r\n\r\n```\r\n'Query' object has no attribute 'cursor' Traceback (most recent call last): File \"/usr/local/lib/python2.7/dist-packages/webapp2.py\", line 1535, in __call__ rv = self.handle_exception(request, response, e) File \"/usr/local/lib/python2.7/dist-packages/webapp2.py\", line 1529, in __call__ rv = self.router.dispatch(request, response) File \"/usr/local/lib/python2.7/dist-packages/webapp2.py\", line 1278, in default_dispatcher return route.handler_adapter(request, response) File \"/usr/local/lib/python2.7/dist-packages/webapp2.py\", line 1102, in __call__ return handler.dispatch() File \"/usr/local/lib/python2.7/dist-packages/webapp2.py\", line 572, in dispatch return self.handle_exception(e, self.app.debug) File \"/usr/local/lib/python2.7/dist-packages/webapp2.py\", line 570, in dispatch return method(*args, **kwargs) File \"/usr/local/lib/python2.7/dist-packages/google/appengine/ext/deferred/deferred.py\", line 310, in post self.run_from_request() File \"/usr/local/lib/python2.7/dist-packages/google/appengine/ext/deferred/deferred.py\", line 305, in run_from_request run(self.request.body) File \"/usr/local/lib/python2.7/dist-packages/google/appengine/ext/deferred/deferred.py\", line 147, in run return func(*args, **kwds) File \"/home/vmagent/app/views/update_schema.py\", line 50, in update_schema_task update_schema_task, cursor=query.cursor(), num_updated=num_updated) AttributeError: 'Query' object has no attribute 'cursor'\r\n```","author":{"url":"https://github.com/jonathan-s","@type":"Person","name":"jonathan-s"},"datePublished":"2016-11-08T22:30:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/643/python-docs-samples/issues/643"}
| 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:2a688c66-2b9e-ceee-69cc-b087b149813c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3A2:3DF948:4C23B0:663435:6A4DA558 |
| html-safe-nonce | c0b8817e83abf7c89781108550868cc8cbfa1c3042689d4e9a484325d14d5503 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0EyOjNERjk0ODo0QzIzQjA6NjYzNDM1OjZBNERBNTU4IiwidmlzaXRvcl9pZCI6IjY2ODIyODc3NTY0NTI2Njg3NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0f7a9de8ef309a1c493690d65cb5bbc2aad2b870e2d4d2df5049af5e600bb3b3 |
| hovercard-subject-tag | issue:188121813 |
| 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/GoogleCloudPlatform/python-docs-samples/643/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8c57483e9ff6836543c9142d24b210594ddc3cb323c03e1322915e451d9e999c/GoogleCloudPlatform/python-docs-samples/issues/643 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8c57483e9ff6836543c9142d24b210594ddc3cb323c03e1322915e451d9e999c/GoogleCloudPlatform/python-docs-samples/issues/643 |
| og:image:alt | In which file did you encounter the issue? https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/standard/ndb/schema_update/main.py#L127 Did you change the file? If so, h... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jonathan-s |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/GoogleCloudPlatform/python-docs-samples git https://github.com/GoogleCloudPlatform/python-docs-samples.git |
| octolytics-dimension-user_id | 2810941 |
| octolytics-dimension-user_login | GoogleCloudPlatform |
| octolytics-dimension-repository_id | 35065876 |
| octolytics-dimension-repository_nwo | GoogleCloudPlatform/python-docs-samples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35065876 |
| octolytics-dimension-repository_network_root_nwo | GoogleCloudPlatform/python-docs-samples |
| 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 | 7f13faa65cccc9b729d674da83335d5dcfdfd193 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width