python - Easiest way to get a GAE datastore entry -
i put key , value datastore following command
data = mydata(db_token=request_token, db_secret=request_secret) data.put()
it looks in datastore
what simplest way of retrieving db_secret if know db_token? ie
retreived_secret = db.somecommand(foo) returns bar
if db_token unique, can use key
save
data = mydata(key_name=request_token, db_secret=request_secret) data.put()
fetch
data = mydata.get_by_key_name(request_token)
Comments
Post a Comment