Thanks for the catch on the typo, I'll make sure that gets fixed.
-- Dan

On Sat, Dec 13, 2008 at 11:18 PM, thebrianschott <schott.br...@gmail.com>wrote:

>
> I think I have found an error in the documentation: in the example I
> have been using where Key.from_path() is used, it should be
> db.Key.from_path() [notice the db.]. Things work better that way.
>
>
> http://code.google.com/appengine/docs/datastore/typesandpropertyclasses.html
>
> On Dec 14, 1:48 am, 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)
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to