From: Christopher S. <csi...@gm...> - 2008-02-12 23:37:33
|
Following up on this issue - here is a test. === from decimal import Decimal from sqlobject import * sqlhub.processConnection = connectionForURI('sqlite:///path/to/decimaltest.db') class Test(SQLObject): number = DecimalCol(size=8, precision=4) Test.createTable(ifNotExists=True) foo = Test(number=Decimal('23')) foo.sqlmeta.expired=True print type(foo.number) === When I run this test, it indicates that sqlobject can return DecimalCol values as nondecimals. cs |