Brian, That's quite an info dump :) Suggestion -- work your way through the documentation since it's pretty good and give yourself a few hours to test out ideas on the local app server. I think you'll learn a lot by using a Console (http://con.appspot.com/console/help/about). If you have these kind of questions, just interactively use the console.
I don't really have the time for a complete analysis, but I think you may be confusing key_name with a key. Another page in the documentation not to be missed: http://code.google.com/appengine/docs/datastore/keysandentitygroups.html It says: "A key has several components: a path describing a parent-child relationship between the entity and another entity, the kind of the entity, and either a name assigned to the entity by the application or a numeric ID assigned by the datastore." The key_name is just one part of a Key object. When you get a string- encoded key, it's the mapping of the Key object data into URL-friendly characters. On Dec 13, 10:48 pm, thebrianschott <schott.br...@gmail.com> wrote: > Looking at the rest of that last example, maybe they are saying not > that "susan5" is the key, but that using Key.from_path(,"susan5") can > get the key? > > m = Employee(name="Susan", key_name="susan5") > m.put() > e = Employee(name="Bob", manager=m.key()) > e.put() > > m_key = Key.from_path("Employee", "susan5") #did I miss the > importance of this? > e = Employee(name="Jennifer", manager=m_key) > > Oh, and I see a typo below where I meant key_name, I typed key_word. > > Brian > > On Dec 14, 1:02 am, thebrianschott <schott.br...@gmail.com> wrote: > > > I know I am going in circles here, but it sure seems like my earlier > > solution using key_word should have worked and I am worried there is > > some bug. Consider the example at this link which uses the reserved > > word key_word. > > >http://code.google.com/appengine/docs/datastore/typesandpropertyclass... > > m = Employee(name="Susan", key_name="susan5") > > m.put() > > > What is going on? > > > Brian > > > On Dec 14, 12:22 am, thebrianschott <schott.br...@gmail.com> wrote: > > > > Wait, I see a flaw: key_name is a reserved word only allowed in the > > > model class. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---