#1164: dSpinner with float increment doesn't work with decimal database field.
--------------------------------------+-------------------------------------
Reporter: skoczian | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone: 0.8.3
Component: ui | Version: 0.8.2
Keywords: dSpinner float increment |
--------------------------------------+-------------------------------------
From the Step-By-Step Guide to Dabo Programming: the dSpinner in the
"hours" form gets an increment of 0.25. It is bound to a database field of
type "decimal(4,2)" or "real(4,2)" (using SQLite instead of MySQL).
Changing the value leads to this error:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-
packages/Dabo-0.8.4-py2.5.egg/dabo/ui/uiwx/dSpinner.py",
line 82, in __onWxSpinDown
if self._spinDown():
File "/usr/lib/python2.5/site-
packages/Dabo-0.8.4-py2.5.egg/dabo/ui/uiwx/dSpinner.py",
line 106, in _spinDown
new = curr - self.Increment
TypeError: unsupported operand type(s) for -: 'Decimal' and 'float'
Using version 0.8.4, Python 2.5.2 on Gentoo Linux.
--
Ticket URL: <http://trac.dabodev.com/ticket/1164>
Dabo Trac <http://trac.dabodev.com>
Trac Page for Dabo
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]