Re: [dabo-users] dGrid editable followup

Author: johnf

Posted: 2008-02-10 at 15:09:50

On Sunday 10 February 2008 11:13:43 am Ed Leafe wrote:

> > Instead I get the following error message at the point where it used

> > to dump.

> > Dabo Error Log: Sun Feb 10 10:09:13 2008: !!! Data Type Mismatch:

> > field=qty. Expecting: <class 'decimal.Decimal'>; got: <type 'unicode'>

> > The field 'qty' is Numeric in the Postgres table. Is there a way to

> > tell Dabo the value entered is a Decimal?

>

> Numerics should be represented inside of Dabo by Decimal if you have

> the Decimal module available, or float if you do not. Since you are

> running Python 2.5.1, you should have Decimal available to you.

>

> Also, it seems Dabo is aware of the type, as it says that it is

> expecting a decimal, but didn't get one. At what point does this

> message appear?

>

> -- Ed Leafe

Is this a ClassDesigner issue? I ask because I don't see this happening with

my grids.

--

John Fabiani

©2008 johnf