Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7973211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:03:02+00:00 2026-06-04T08:03:02+00:00

In this page: https://developers.google.com/appengine/docs/python/datastore/keyclass#Key_from_path This part: Key.from_path(kind, id_or_name, parent=none, namespace=None, **kwds) Builds a new

  • 0

In this page: https://developers.google.com/appengine/docs/python/datastore/keyclass#Key_from_path

This part:

Key.from_path(kind, id_or_name, parent=none, namespace=None, **kwds)
Builds a new Key object from an ancestor path of one or more entity keys.

A path represents the hierarchy of parent-child relationships for an entity. Each entity in the path is represented the entity’s kind, and either its numeric ID or its key name. The full path represents the entity that appears last in the path, with its ancestors (parents) as preceding entities.

For example, the following call creates a key for an entity of kind Address with the numeric ID 9876 whose parent is an entity of kind User with the named key ‘Boris’:

k = Key.from_path(‘User’, ‘Boris’, ‘Address’, 9876)

For more information about paths, see Keys and Entity Groups.

The function call and the explaination just don’t make sense here, if Address is the “kind” argument, should it go first?? And the ID 9876 should go second? Why are they 3rd and 4th?
And “parent” is the third parameter, why are there two “parent” arguments (kind ‘User’ and name ‘Boris’) here and they are first and second in the argument list?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T08:03:03+00:00Added an answer on June 4, 2026 at 8:03 am

    Keys in AppEngine are hierarchical, to get a full key you need to pass all the ancestry information.

    In the case of the example there are two objects types: User and Address, User is a parent of to Address.
    The call to from_path first provides object type User which his id is Boris (id can be a string name or integer id), this object has a child object of type Address which his id is 9876.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

reading this https://developers.google.com/in-app-payments/docs/tutorial Quoted from the above page: Because you sign the JWT using
I´m trying to follow the step by step guide on this page: https://developers.google.com/picasa-web/docs/2.0/developers_guide_java?hl=nl-NL So,
I'm using code from this page http://code.google.com/apis/contacts/docs/1.0/developers_guide_js.html to get list of gmail contacts. Actually
I am trying to follow the guide here: https://developers.google.com/chrome-developer-tools/docs/scripts-breakpoints But it doesn't seem to
Example form, https://stackoverflow.com/questions/ask and I save this page to desktop. Then I edit the
in this page http://api.jquery.com/category/effects/ when you put 'up'(keyboard) and 'down',then put 'enter',it will go
On this page: http://www.palosverdes.com/sandbox/9slategrey/index.cfm I'm trying to put in a new menu (the one
On this page: http://www.anasiamusic.com/bio.html in the body text (Ana Sia's DJ crate is a
Consider this page @ http://www.bloodbone.ws/screwed.html I need to be able to have the a.grow
From this page: http://www.doctrine-project.org/documentation/manual/1_2/en/working-with-models#dealing-with-relations:creating-related-records You can see that it says $obj['property']; is the recommended

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.