On Tue, Feb 28, 2006, Oleg Broytmann wrote:
>On Mon, Feb 27, 2006 at 08:43:37PM -0300, Sam's Lists wrote:
>> I'm still confused as to why I need to specify the joinColumn
>> though...
>
> Look at your classes:
>
>class Wstore(SQLObject):
> companyId = StringCol(default=None, alternateID=True, length=60)
> specialSearchR = SingleJoin('SpecialSearch')
>
>class SpecialSearch(SQLObject):
> companyId = ForeignKey('Wstore', alternateID=True)
>
> How can SQLObject guess by what column the join should be performed?
>
>> I can't find any examples of SingleJoins on the web, but the examples I've
>> seen of MultipleJoins don't specify the joinColumn. Is this somehow a
>> unique requirement of SingleJoins?
>
> No. I use joinColumn very often for all joins. Look, the code from the
>real program:
Speaking of Real Programs(tm) -- are there any open source
programs that use sqlobject? I would love to grab some code to
see how people do things.
Bill
--
INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
``Most people, sometime in their lives, stumble across truth. Most jump
up, brush themselves off, and hurry on about their business as if
nothing had happened.'' - Sir Winston Churchill
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss