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 <[email protected]> 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 <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.