Monday, 2 September 2013

Retrieving GAE data via Key

Retrieving GAE data via Key

I'm new to python & google app engine so this is going to be a basic
question but I cannot find an answer elsewhere ...
I'm trying to retrieve a record by passing the key (as generated by GAE)
from an HTML page back to python.
My html call is
<a
href="/playerprofile?uid=ahRkZXZ-Y293YnJpZGdlYm9va2luZ3IWCxIGTWVtYmVyIgpKb2huIEpvbmVzDA">John
Jones</a>
I'm then trying to pull it out of the table like this
uid = self.request.get('uid')
m = Member.all().filter('Key = ',uid)
It doesn't retrieve anything. How do I do it?

No comments:

Post a Comment