Hi Ray,

On Tue, Jul 28, 2009 at 2:19 PM, Ray Malone <[email protected]> wrote:

>
> I have a class that holds users and a class with objects the users
> own.    The user class stores the user type.  I want to query to find
> all objects owned by users of a specific type.


The best way to do this is to associate the type of the owning user with
each object. That way, you can do a straightforward query to find all
objects owned by users of a given type.


> I have a ref that
> points to users in the objects class, but not sure how I can use this
> to do what I need.  I know I can access the objects from the Ref, but
> not sure how to pass the query as a list to a template and acesss the
> Ref.


Simply call .fetch(num) to get a list of results from a Query object.

-Nick Johnson


>
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~---------~--~----~------------~-------~--~----~
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