Re: [SQLObject] assert id is not None

2008-07-22 Thread Ray Van Dolson
>Oops, seems like a bug. I think what caused the bug is using > fromDatabase and idName simultaneously - SQLObject drew SystemName from the > DB and added it because of the idName. To work around the bug avoid > using fromDatabase - declare your columns explicitly. Thanks for the explanation.

Re: [SQLObject] assert id is not None

2008-07-22 Thread Oleg Broytmann
On Tue, Jul 22, 2008 at 02:06:06PM +0400, Oleg Broytmann wrote: > > Maybe I can remove SystemName from the column list > >Columns are in SystemsInfo.sqlmeta object (see main.py), in .columns, > .columnList, .columnDefinitions. And there is SystemsInfo.sqlmeta.delColumn() call. Oleg. --

Re: [SQLObject] assert id is not None

2008-07-22 Thread Oleg Broytmann
On Mon, Jul 21, 2008 at 05:31:24PM -0700, Ray Van Dolson wrote: > class SystemsInfo(SQLObject): > class sqlmeta: > fromDatabase = True > table = 'SystemsInfo' > idType = str > idName = 'SystemName' > lazyUpdate = True > > So, my "id" key has been changed to SystemName. In th

Re: [SQLObject] assert id is not None

2008-07-21 Thread Ray Van Dolson
On Mon, Jul 21, 2008 at 05:31:24PM -0700, Ray Van Dolson wrote: > Hi all, I'm running into an exception trying to create a new row in a > table with fromDatabase = True defined (the table is pre-existing). Hmm, I am guessing the note right above this: http://www.sqlobject.org/SQLObject.html#cla

[SQLObject] assert id is not None

2008-07-21 Thread Ray Van Dolson
Hi all, I'm running into an exception trying to create a new row in a table with fromDatabase = True defined (the table is pre-existing). The class definition looks like this: class SystemsInfo(SQLObject): class sqlmeta: fromDatabase = True table = 'SystemsInfo' idType = str idN