On Tue, Sep 17, 2013 at 08:19:13PM +0200, towb@... wrote:
> To work with foo = RelatedJoin('Song') we use .foo, .addSong and .removeSong. But those names are configurable. How do I get them when all I know is "foo"?
> One way seems to be sqlmeta.joins.performJoin, .add and .remove. Is that an internal API, and subject to change?
I have less and less time to work on SQLObject so until someone
replaces me as the developer there will be no major changes for quite
> How do I get the list index?
By looking up the join object you're interested in:
test2 = RelatedJoin('Test2')
test1 = RelatedJoin('Test1')
for j in Test2.sqlmeta.joins:
print j.joinMethodName, j.otherClassName, j.addRemoveName
Oleg Broytman http://phdru.name/ phd@...
Programmers don't die, they just GOSUB without RETURN.