Closed
Description
>>> dataset = demo.get_dataset()
>>> query = dataset.query()
>>> entity = query.fetch()[0]
>>> entity.delete()
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "gcloud/datastore/entity.py", line 206, in delete
self.dataset().connection().delete_entity(
AttributeError: 'NoneType' object has no attribute 'delete_entity'
This 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).