for res in results: print res.key() print res.key().id() print res.key().name()
On Sep 19, 3:51 pm, ideamonk <[email protected]> wrote: > I wish to get the unique key specified to the rows that are returned > by a GQL query. How do I do that... > I tried this, but it didn't work... > > def getShortyId(shorturl): > result = db.GqlQuery("SELECT * FROM snapSite WHERE shorty = :1", > shorturl) > return result.key() --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
