Title: Adding lazy loading support for dataset ID. by dhermes · Pull Request #667 · googleapis/google-cloud-python · GitHub
Open Graph Title: Adding lazy loading support for dataset ID. by dhermes · Pull Request #667 · googleapis/google-cloud-python
X Title: Adding lazy loading support for dataset ID. by dhermes · Pull Request #667 · googleapis/google-cloud-python
Description: NOTE: Has #666 as diffbase. Still need to support connection (and eventually do the same in storage). Again verified only the lazy loading tests used implicit behavior via diff --git a/gcloud/datastore/_implicit_environ.py b/gcloud/datastore/_implicit_environ.py index 6e61636..6d67be6 100644 --- a/gcloud/datastore/_implicit_environ.py +++ b/gcloud/datastore/_implicit_environ.py @@ -177,6 +177,10 @@ class _LazyProperty(object): self._method = method def __get__(self, obj, objtype): + class FooError(Exception): + pass + raise FooError + if obj is None or objtype is not _DefaultsContainer: return self
Open Graph Description: NOTE: Has #666 as diffbase. Still need to support connection (and eventually do the same in storage). Again verified only the lazy loading tests used implicit behavior via diff --git a/gcloud/datas...
X Description: NOTE: Has #666 as diffbase. Still need to support connection (and eventually do the same in storage). Again verified only the lazy loading tests used implicit behavior via diff --git a/gcloud/datas...
Opengraph URL: https://github.com/googleapis/google-cloud-python/pull/667
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ca50a32d-1fde-6d54-a1e0-8298704ee5cb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D9D2:39DBD7:77F2A1:A3DDAC:6A4D45E0 |
| html-safe-nonce | 969e6539a1013e769371f2313f3edfd40f6ffd8269022e8dd41208b09c13411d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUQyOjM5REJENzo3N0YyQTE6QTNEREFDOjZBNEQ0NUUwIiwidmlzaXRvcl9pZCI6IjY3MTMwODgxMTM2ODg1MjgzNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 15a957a0549eb7d5c7fce3022701ee5d2acd2f222eda4c852ada4ab53404f1f9 |
| hovercard-subject-tag | pull_request:29582301 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/googleapis/google-cloud-python/pull/667/files |
| twitter:image | https://avatars.githubusercontent.com/u/520669?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/520669?s=400&v=4 |
| og:image:alt | NOTE: Has #666 as diffbase. Still need to support connection (and eventually do the same in storage). Again verified only the lazy loading tests used implicit behavior via diff --git a/gcloud/datas... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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