For class introspection check out http://docs.python.org/library/inspect.html and http://www.ibm.com/developerworks/library/l-pyint.html
S. Sriram On Apr 9, 6:40 pm, 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 -~----------~----~----~----~------~----~------~--~---