Hi Nickolas,

There's no public interface for this. Why do you need to do it?

-Nick Johnson

On Fri, Feb 19, 2010 at 11:28 AM, Nickolas Daskalou <[email protected]>wrote:

> Is there an "official" way to get the Model class from a Query instance? I
> had a look through the online docs and couldn't find anything.
>
> In the SDK code however, the Model class of a Query instance can be
> retrieved from the _model_class attribute of the Query instance, eg:
>
> q = MyModel.all()
> ....
> model_class = q._model_class # == MyModel
>
> I don't really want to do it this way because since this is not documented
> anywhere, I'm afraid that this implementation may change in the future.
>
> --
> 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]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>



-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

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