GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Key id / name should fail if set to 0 / '' · Issue #443 · googleapis/google-cloud-python Closed Labels 🚨This issue needs some love.api: datastoreIssues related to the Datastore API.triage meI really want to be triaged. DescriptionIn def id(self, id_to_set=None): ... if id_to_set: clone = self._clone() also ignores This means it ignores the integer >>> from gcloud import datastore >>> cnxn = datastore.get_connection() >>> import os >>> dataset = cnxn.dataset(os.getenv('GCLOUD_TESTS_DATASET_ID')) >>> entity = dataset.entity('foo') >>> entity.key()._path [{'kind': 'foo'}] >>> entity.key()._path[0]['id'] = 0 >>> entity <Entity[{'kind': 'foo', 'id': 0}] {}> >>> entity['bar'] = u'baz' >>> entity.save() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "gcloud/datastore/entity.py", line 246, in save exclude_from_indexes=self.exclude_from_indexes()) File "gcloud/datastore/connection.py", line 477, in save_entity result = self.commit(dataset_id, mutation) File "gcloud/datastore/connection.py", line 377, in commit datastore_pb.CommitResponse) File "gcloud/datastore/connection.py", line 95, in _rpc data=request_pb.SerializeToString()) File "gcloud/datastore/connection.py", line 73, in _request raise Exception('Request failed. Error was: %s' % content) Exception: Request failed. Error was: Key path id is invalid. Must not be zero. /cc @pcostell Activity
MetadataMetadataAssigneesLabels🚨This issue needs some love.api: datastoreIssues related to the Datastore API.triage meI really want to be triaged. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |