Try Ruta.get(db.Key(KEY))

The documentation is quite nice.
http://code.google.com/appengine/docs/python/datastore/

Robert



On Wed, Oct 28, 2009 at 3:38 PM, david <dromerotr...@gmail.com> wrote:

>
> Hello,
>
> How can I search for keys in DataStore?
>
> Is it possible? Or do I have to create a key attribute in db.Model?
>
> For example:
>
> class Ruta(db.Model):
>  titulo = db.StringProperty()
>  KML = db.BlobProperty()
>
> class example(webapp.RequestHandler):
>  def get(self,KEY):
>    query_str = "SELECT * FROM Ruta WHERE key = '" + KEY + "'"
>    rutas = db.GqlQuery (query_str)
> >
>

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