Finaly I was succesful after some googling. Sorry I did not it before asking
my question, but I was confused by the example mentioned in the FAQ.
To provide feedback to others it was necessary to add the name of the column
where the "join" is made.

class Customer(SQLObject):
    class sqlmeta:
        fromDatabase = True
        idName = "CUST_NO"
    sales = MultipleJoin('Sales', joinColumn='CUST_NO') # this is what I
have to add to my code

class Sales(SQLObject):
    class sqlmeta:
        fromDatabase = True
        idName = "PO_NUMBER"
        idType= str
        custNo = ForeignKey('CUST_NO')

thanks and best regards

Petr Jakes
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to