summaryrefslogtreecommitdiffstats
path: root/ipalib/encoder.py
Commit message (Collapse)AuthorAgeFilesLines
* Redo boolean value encoding.Jan Cholasta2012-05-091-1/+9
| | | | | | | Move the code for encoding boolean values to LDAP boolean syntax from the Parameter class to the Encoder class, where the rest of LDAP encoding takes place. Remove encoding code from the Parameter class altogether, as all LDAP encoding should be done in the Encoder class.
* Replace float with DecimalMartin Kosek2012-01-201-2/+4
| | | | | | | | | | | | | | | | | | | | 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
* Change FreeIPA license to GPLv3+Jakub Hrozek2010-12-201-5/+5
| | | | | | | | | | The changes include: * Change license blobs in source files to mention GPLv3+ not GPLv2 only * Add GPLv3+ license text * Package COPYING not LICENSE as the license blobs (even the old ones) mention COPYING specifically, it is also more common, I think https://fedorahosted.org/freeipa/ticket/239
* Prevent double encoding/decoding when processing compound types.Pavel Zuna2009-08-031-5/+10
|
* Add support for incomplete (truncated) search results.Pavel Zuna2009-06-151-1/+1
| | | | | | | | | | ldap2.find_entries now returns a tuple containing 2 values. First, a list of entries (dn, entry_attrs), Second, the truncated flag. If the truncated flag is True, search results hit a server limitation and are incomplete. This patch also removes decoding of non-string scalar python types into unicode (they are left unchanged).
* Fix bug in Encoder where tuples were encoded into lists. Fix Encoder and ↵Pavel Zuna2009-06-101-3/+3
| | | | Command.args_options_2_entry unit tests.
* Fix bug where finalized IPA object where trying to modify their member ↵Pavel Zuna2009-05-221-78/+66
| | | | variables in Encoder methods.
* Add Encoder base class and method decorators to encode arguments/decode ↵Pavel Zuna2009-05-191-0/+210
return values. Also - unit tests.