I'm programming with the DataStore of GAE and am trying to get the
unique identifier for instances of a
db.Model, how do you get?

For example:

class Ruta(db.Model):
  titulo = db.StringProperty()
  KML = db.BlobProperty()

class mostrarIndice(webapp.RequestHandler):
    def get(self):
        rutas = db.GqlQuery ("SELECT * FROM Ruta")
        for r in rutas:
            self.response.out.write("""<id>%s</id></ruta>""" % ¿?¿?¿?)

I have tried r.key () but I get the same value for all instances.

Thank you very much.
See you.
David.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to