Thanks! It helped! for some reson it didn't work before...
On 24 אפריל, 20:14, 风笑雪 <[email protected]> wrote: > query_results = my_query.get()key = query_results.key() > > 2009/4/24 YahavT <[email protected]> > > > > > > > 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 -~----------~----~----~----~------~----~------~--~---
