[SQLObject] how to use sqlmeta.idName?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <jpa...@gm...> - 2005-07-16 16:44:09
|
Hi! Can someone tell me how to use sqlmeta.idName on my classes? I'm working with a already running database so that the names of the primary key columns are not just 'id', but 'id_name' where name is the name of the table. I tryied like this: class Test(SQLObject): connection =3D _con # connection string sqlmeta.idName =3D 'id_test' test =3D StringCol() test =3D Test.select() This gives me an error because it can't find test.id column.. Thanks in advance, -- JP |