From the Gee source code, the signature of the static method from_path
of the Key
class:
def from_path(*args, **kwds):
accepting a nonzero even number of positional arguments in the form (kind, id or name, kind, id or name, etc. etc.)
:
if not args or len(args) % 2: raise datastore_errors.BadArgumentError( 'A non-zero even number of positional arguments is required ' '(kind, id or name, kind, id or name, ...); received %s' % repr(args))
As indicated in the documentation, the full path is the entity that appears last in the path, with its ancestors (parents) being the previous objects.
So the example seems right; the created key is a key of an object of the type Address with id
9876, which has the parent view of the user with Boris as key name
.
source share