Re: [SQLObject] ForeignKey class helper function?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2005-10-22 15:37:13
|
On Fri, Oct 21, 2005 at 04:01:03PM -0500, Jeff Bauer wrote: > class Breakfast(SQLObject): > eggs = ForeignKey('Eggs') > > Is there a convenient method to retrieve the actual class > Eggs? from sqlobject.classregistry import findClass Eggs = findClass("Eggs") Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |