Can anyone tell me how to retrieve the name of an instance?

puzzle = models.Puzzle( key_name='my_new_puzzle' )
puzzle.title = 'My puzzle'
puzzle.put()

This works fine, i see the ID/Name in the data viewer

then I try to retrieve the name

puzzle.id_or_name()


I get the error: AttributeError: 'Puzzle' object has no attribute
'id_or_name'

What do I do wrong??
Thanks,

HP




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