The key field is "__key__" (two underscores on each side).

Jeff

On Sat, Oct 22, 2011 at 1:30 PM, Max <[email protected]>wrote:

> Hi,
> I'm trying to filter by Key, but it's not working. I have searched in the
> documents, but there is nothing useful (or understandable for me).
>
> My code is:
> class ModificaHandler(webapp.RequestHandler):
> def get(self, domain):
> appo = self.request.get('domain')
> risto = db.Query(RISTORANTI).filter("key =", appo)
> self.response.out.write(template.render('risto.html',{'risto':risto}))
>
> I can't understand why. Please help.
>
> Max
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/gMMnMu2YMj8J.
> 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.
>

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