[SQLObject] Re: ForeignKey class helper function?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: gary n. <li...@ga...> - 2005-10-22 04:13:20
|
checkout catwalk at turbogears. It can do it, don't know how generic it is. Seems to be putting every class definition in a module then query the module to find the name, thus class. "Jeff Bauer" <jb...@ru...> wrote in message news:435...@ru...... > I was wondering if there was a helper function somewhere > in the library to obtain the foreign key class as opposed > to the name of the class. For example, given: > > class Breakfast(SQLObject): > eggs = ForeignKey('Eggs') > > Is there a convenient method to retrieve the actual class > Eggs? I'm aware that the *name* of the class is available > from .sqlmeta.columns['eggs'].foreignKey. > > -Jeff > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl |