Hi,
I want to get from the datastore a record i added plus it's key.
How can I do it?
If I just run a regular SELECT I just get the record data, without the
key of the record.
for example:
"
class temp(db.Model)
my_var = db.StringProperty()
record = temp()
record.my_var = "Testing"
record_key = record.put()
my_query = db.GqlQuery("SELECT * FROM temp")
query_results = my_query.get() # I ONLY GET my_var.. NO
KEY !! "
Please help...
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---