freeipa/ipalib
Martin Kosek 092dd8db12 Replace float with Decimal
Having float type as a base type for floating point parameters in
ipalib introduces several issues, e.g. problem with representation
or value comparison. Python language provides a Decimal type which
help overcome these issues.

This patch replaces a float type and Float parameter with a
decimal.Decimal type in Decimal parameter. A precision attribute
was added to Decimal parameter that can be used to limit a number
of decimal places in parameter representation. This approach fixes
a problem with API.txt validation where comparison of float values
may fail on different architectures due to float representation error.

In order to safely transfer the parameter value over RPC it is
being converted to string which is then converted back to
decimal.Decimal number on a server side.

https://fedorahosted.org/freeipa/ticket/2260
2012-01-20 08:13:44 +01:00
..
plugins Replace float with Decimal 2012-01-20 08:13:44 +01:00
__init__.py Replace float with Decimal 2012-01-20 08:13:44 +01:00
aci.py Fix uninitialized attributes. 2011-04-21 10:41:29 +02:00
backend.py Fix lint false positives. 2011-04-13 15:58:45 +02:00
base.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
cli.py Improve CLI output for complex commands 2012-01-12 09:43:13 +01:00
compat.py Fix lint false positives. 2011-04-13 15:58:45 +02:00
config.py Finalize plugin initialization on demand. 2011-11-22 00:52:24 -05:00
constants.py Reload UI on server upgrade. 2011-12-21 13:23:08 -06:00
crud.py Fix LDAP object parameter encoding 2011-11-15 13:17:44 +01:00
dn.py Fix attempted write to attribute of read-only object. 2012-01-02 11:51:26 +03:00
encoder.py Replace float with Decimal 2012-01-20 08:13:44 +01:00
errors.py Fix attempted write to attribute of read-only object. 2012-01-02 11:51:26 +03:00
frontend.py Added commands into metadata. 2011-12-06 22:07:35 +00:00
output.py Display the entries that failed when deleting with --continue. 2011-01-10 10:32:10 -05:00
parameters.py Replace float with Decimal 2012-01-20 08:13:44 +01:00
pkcs10.py Fix assorted bugs found by pylint 2011-01-25 14:01:36 -05:00
plugable.py Restore default log level in server to INFO 2011-12-01 08:34:02 +01:00
request.py Remove deprecated i18n code from ipalib/request and all references to it. 2011-03-01 10:31:36 -05:00
rpc.py Replace float with Decimal 2012-01-20 08:13:44 +01:00
text.py Fix regressions introduced by pylint false positive fixes. 2011-05-11 16:50:01 +02:00
util.py Refactor dnsrecord processing 2012-01-12 09:43:05 +01:00
x509.py Verify that the external CA certificate files are correct. 2011-08-23 01:23:41 -04:00