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:23:05
|
Are you using the SVN version? If I try it like that: class Test(SQLObject): _idName=3D'test_id' connection =3D _con test =3D StringCol() It will work, but gives me a warning: D:/projetos/pontoa2-py/pessoa.py:15: DeprecationWarning: '_idName' is deprecated; please set the 'idName' attribute in sqlmeta instead class Test(SQLObject): So, I'm trying to use the sqlmeta, but I don't know how to use it. =3D( -- JP On 7/18/05, Oleg Broytmann <ph...@ma...> wrote: > On Mon, Jul 18, 2005 at 08:09:27AM -0300, Jo?o Paulo Fernandes Farias wro= te: > > psycopg.ProgrammingError: ERROR: column estado.id does not exist >=20 > That's strange because Igot a different error: >=20 > File "./test_idName.py", line 5, in ? > class Test(SQLObject): > File "./test_idName.py", line 7, in Test > sqlmeta.idName =3D 'id_test' > NameError: name 'sqlmeta' is not defined >=20 > Where does your sqlmeta come from? >=20 > Oleg. > -- > Oleg Broytmann http://phd.pp.ru/ ph...@ph... > Programmers don't die, they just GOSUB without RETURN. > |