durusmail: quixote-users: Decimal widget
Decimal widget
2005-10-29
Decimal widget
Matt Campbell
2005-10-29
I see that Quixote (as of version 2.3) doesn't have a widget for the
Decimal type introduced in Python 2.4.  This would be nice, especially
for apps involving currency.  Of course, it's trivial to implement:

try:
     from decimal import Decimal

     class DecimalWidget(NumberWidget):
         TYPE_OBJECT = Decimal
         TYPE_ERROR = "must be a number"
except:
     pass
reply