Woobie,

I tried the following code using key_name and
I still get more copies of the entity. What am I
missing?

(see my next reply post, too, please)

Brian in Atlanta

************code I put into the interactive console.


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(handle=handle,owner=person.key())
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