From: Oleg B. <ph...@ph...> - 2009-04-10 12:27:51
|
On Fri, Apr 10, 2009 at 12:06:38PM +0200, Markus W. Barth wrote: > Hi, > is there a possibility to figure out at runtime wich table a ForeignKey refers > to? from sqlobject.classregistry import findClass class Test1(SQLObject): test1=MultipleJoin('Test2', joinColumn='post_id') class Test2(SQLObject): test2=ForeignKey('Test1') print findClass(Test2.sqlmeta.columns['test2ID'].foreignKey, Test2.sqlmeta.registry) Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |