I'm attempting to create a FixedPointCol that's essentially a
DecimalCol except that it returns a FixedPoint (which I prefer to
Decimal) instead of a float type in its from_python method.  My
basic problem is that I want to do fixed point arithmatic in
accounting applications, and floats present the usual rounding
problems.

My problem is that I can't figure out how to get the column
definition's ``precision'' attribute.

How does one get the Col attributes within the Validator methods?

Another question is whether it's possible to reference the
to_python and from_python methods without affecting the database.
I'm writing curses based data entry routines where it would be
useful to address these, say in a search screen where there's no
specific database record.

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

``Rightful liberty is unobstructed action according to our will within
limits drawn around us by the equal rights of others. I do not add 'within
the limits of the law' because law is often but the tyrant's will, and
always so when it violates the rights of the individual.''
    -Thomas Jefferson


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to