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 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:
>       keys.append(gae.Key.from_path(table_name, id,
>                  _app=u'appname')
>
>    return gae.get(keys)
>
> On Mar 26, 11:50 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > 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 multiple keys, but that syntax
> > > confuses me.
>
> > > -Dane
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to