When you say Model object to you mean a class inheriting from db.Model
or a instance of a class inheriting from db.Model.

Another Question ? If you know the kind name then you know the class
name
so why do you need to look it up ?

And lastly When you say  "If I called mysteryFx("Pigeon") it would
return the class reference to Pigeon"
don't you mean you mysterFx("Pigeon") would return the class called
Pigeon ?

Just trying to clarify what you are asking for before I chime in.

T

On Apr 10, 9:40 am, Stephen Cagle <same...@gmail.com> wrote:
> I have a collection of Model objects. I am wondering if there is any
> way to retrieve one of these Model objects dynamically, using nothing
> more than a string. As a example, say I had a Model object named
> Pigeon in my database, and I did not have a Model object named
> Pooridge. If I called mysteryFx("Pigeon") it would return the class
> reference to Pigeon, if I called mysteryFx("Pooridge") it would return
> None. Does anyone know the innards of mysteryFx?
>
> Note, I am not interested in importing every existent Model object,
> and then storing them in a dictionary or something like that. I want
> to ask AppEngine if it has a table (kind, whatever) that matches the
> provided string, and if it does, I want it to give me a reference to
> the class implementation that matches said table.
>
> Thank you
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to