Re: [SQLObject] bug in sqlobject-admin
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2010-04-20 18:12:59
|
On Tue, Apr 20, 2010 at 09:00:11PM +0300, Imri Goldberg wrote: > When I checked it, it seemed to me to happen because the 'size' and > 'precision' were pop()-ed from the original **kw dict passed to DecimalCol. The problem was that the dictionary was simply empty. SQLiteConnection.guessClass() did at line 364: elif t.find('DECIMAL') >= 0: return col.DecimalCol, {} I changed that to return col.DecimalCol, {'size': None, 'precision': None} With the change your test works for me. BTW, DecimalCol is only recognized by SQLiteConnection. Oleg. -- Oleg Broytman http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |