Guys,
Please forgive this simple question, but I have been experimenting
forever and I can't find a solution. I checked all the docs and the FAQ.
I have two tables: "TableA" and "TableB". I want to join them in a
one-to-one relationship with a primary/foreign key. I have a mysql
database. How do I link the two tables together?
class TableA(SQLObject):
class sqlmeta:
fromDatabase = True
temp1 = SingleJoin('TableB')
class TableB(SQLObject):
class sqlmeta:
fromDatabase = True
temp2 = ForeignKey("ID")
TableA has primary key "ID". TableB has a foreign key "ID". The error I
am getting with the above code is:
File "./test.py", line 55
temp1 = SingleJoin('TableB')
"IndentationError: unindent does not match any outer indentation level".
This is weird because my indentation is fine!
-------------------------------------------------------
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