[web2py] Re: Query by list of ids on GAE

2010-03-27 Thread Dane
Hooray, I can contribute something! It's just a matter of converting the ids to Key types with the Key.from_path method. google's db.get takes a list of Keys. import google.appengine.ext.db as gae get_from_gae(idlist): keys = [] for id in idlist:

[web2py] Re: Query by list of ids on GAE

2010-03-27 Thread Dane
Also the result objects use some sort of wrapper class, similar to the web2py row object. Properties are accessed by dot syntax. Id is accessed by result.key().id() On Mar 27, 5:31 am, Dane dane.schnei...@gmail.com wrote: Hooray, I can contribute something! It's just a matter of converting the

[web2py] Re: Query by list of ids on GAE

2010-03-26 Thread mdipierro
Not through the dal but if you find out how to do it using GAE API, post an example here and we can look into implementing it. Massimo On 26 Mar, 18:31, Dane dane.schnei...@gmail.com wrote: Can this be done through the DAL? I see there is a get() method on google.appengine.ext.db that can take