On Sat, Dec 15, 2007 at 02:11:30PM -0800, Fred C wrote:
> >>class Mbox(SQLObject):
> >>    msg_to = RelatedJoin("User", intermediateTable='mbox_user',
> >>                          joinColumn='mbox_id',
> >>                          otherColumn='user_id',
> >>                          createRelatedTable=False)
> >>
> >>class MboxUser(SQLObject):
> >>    status = IntCol(default=0)
> >>    mbox = ForeignKey('Mbox', notNull=True, cascade=True)

   Oops, sorry, I haven't realized that this is the intermediate table, not
the ultimate (User) one.
   No, RelatedJoin doesn't expose an API to do a join with the intermediate
table.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to