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

enter image description here

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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -