I have a foreign key called 'class_id' in my reports table. I have
legacy code that refers to 'class_id'. I worked around how sqlobject
appends 'ID' to ForeignKey column names. I was hoping to do:
class Report(SQLObject):
class = ForeignKey('Class')
That's clashing with Python's 'class' keyword. I tried setting this
after the fact:
setattr(Report, 'class', ForeignKey('Class'))
setattr(Report.sqlmeta, 'class', ForeignKey('Class'))
It doesn't look like I can use addColumn() or any other method to add
a ForeignKey. Any thoughts on how to accomplish this?
Thanks,
Erik
-------------------------------------------------------
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