Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion gcloud/datastore/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@ def __init__(self, path=None, namespace=None, dataset_id=None):

:type dataset_id: string
:param dataset: The dataset ID assigned by back-end for the key.
Leave as None for newly-created keys.

.. note::

The key's ``_dataset_id`` field must be None for keys created
by application code. The
:func:`gcloud.datastore.helpers.key_from_protobuf` factory
will be set the field to an appropriate value for keys returned
from the datastore backend. The application **must** treat any
value set by the back-end as opaque.
"""
self._path = path or [{'kind': ''}]
self._namespace = namespace
Expand Down