[google-appengine] Re: Can I query to find out the children entities of a Parent entity?

2009-03-19 Thread iceanfire
wow, I am incredibly stupid. I didn't import the db.Model subclass.. that explains everything. Thanks alot Andy! Also, for anyone else coming across this thread: use childTable.all().ancestor(parent_key) to query an entity to find its parents (instead of querying the parent table for children)

[google-appengine] Re: Can I query to find out the children entities of a Parent entity?

2009-03-18 Thread iceanfire
anyone? On Mar 16, 1:09 pm, iceanfire iceanf...@gmail.com wrote: Also, now when I ran the following code in the console: from google.appengine.ext import db key_of_specific_Thumb_entity = agdhcHRydXNochALEgpJbWFnZVRodW1iGEUM ==key grabbed from

[google-appengine] Re: Can I query to find out the children entities of a Parent entity?

2009-03-16 Thread iceanfire
Also, now when I ran the following code in the console: from google.appengine.ext import db key_of_specific_Thumb_entity = agdhcHRydXNochALEgpJbWFnZVRodW1iGEUM ==key grabbed from datastore for thumbnail (which is a parent of the Bin/Large Image)