SQLObject - Connect to established DB with non-int 'id' field

Sean DiZazzo half.italian at gmail.com
Fri Oct 19 20:13:48 EDT 2007


Hi all,

I am just beginning with TurboGears and have run into a problem with
SQLObject.

I'm trying to connect to an established mysql DB, and use TurboGears
to display results from the DB only.  The problem is that the DB
already has an 'id' field that is a string as opposed to an int.
SQLObject complains because it wants to use the id field for it's own
purposes.

How can I use TurboGears to get data out of this DB?

Thanks in advance.

~Sean




More information about the Python-list mailing list