Re: [SQLObject] how to use sqlmeta.idName?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <jpa...@gm...> - 2005-07-18 11:07:35
|
Sorry! I'm on windows XP SP 2 with python 2.4.1 and SQLObject from SVN (revision from two days ago). I'm using postgresql and psycopg. -- JP On 7/18/05, Oleg Broytmann <ph...@ma...> wrote: > On Sat, Jul 16, 2005 at 01:42:52PM -0300, Jo?o Paulo Fernandes Farias wro= te: > > 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.. >=20 > http://www.catb.org/~esr/faqs/smart-questions.html#beprecise >=20 > OS? DB? Driver? SQLObject's version? Traceback? >=20 > Oleg. > -- > Oleg Broytmann http://phd.pp.ru/ ph...@ph... > Programmers don't die, they just GOSUB without RETURN. > |