Woobie,

I think I get it, now.
I needed to put the key_name into the Message,
not into the Person. Right?

Thanks, a lot.
This is the revised version.

Brian in Atlanta

***********code below

class Person(db.Model):
   user = db.UserProperty()
   address = db.EmailProperty()
   skillName = db.StringProperty()

class Message(db.Model):
   owner = db.ReferenceProperty(Person)
   comment = db.TextProperty()
   handle =  db.StringProperty()

person = Person(key_name="contraBSchott")
person.put()

skillName_id = "contraBSchott"
handle = "Killer"
comment = "Peace"
person = Person(key_name="contraBSchott")
message = Message(key_name=handle, handle=handle)
message.comment = comment
message.handle = handle
message.put()

query = Message.all()
for result in query:
  print result.comment


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