On Jan 24, 12:29 am, dburns <[email protected]> wrote:
> Making a User instance the parent of a SS (snapshot) instance seems
> like a natural fit, except then I can't fetch all the favourites via:
> favs = SS.get_by_id(user.fav_ids).  The reason is that all parents
> have to be the same to use SS.get_by_id (according 
> tohttp://code.google.com/appengine/docs/python/datastore/modelclass.htm...),
> but those favourites may have been created by various users (hence the
> parents would be different).

Can you use SS.get(keys) instead?

I think the reason that get_by_id requires the parent is because IDs
are not full keys (and presumably an ID can be duplicated for
different kinds). If you create Keys for them (you'll need to know
their Kind), you could call SS.get(keys) and get them all in one go.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en.

Reply via email to