summaryrefslogtreecommitdiffstats
path: root/ipalib/encoder.py
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2009-06-15 15:50:50 +0200
committerRob Crittenden <rcritten@redhat.com>2009-06-15 11:18:55 -0400
commitad54fc33994c871eb72471a6bb19edacdc830343 (patch)
treed69fa046dcfc721ba7487e2aa83f2b72e7f4f1fe /ipalib/encoder.py
parent473e03d2f79321c72ada1bf579f431ae27d57d6f (diff)
downloadfreeipa-ad54fc33994c871eb72471a6bb19edacdc830343.tar.gz
freeipa-ad54fc33994c871eb72471a6bb19edacdc830343.tar.xz
freeipa-ad54fc33994c871eb72471a6bb19edacdc830343.zip
Add support for incomplete (truncated) search results.
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).
Diffstat (limited to 'ipalib/encoder.py')
-rw-r--r--ipalib/encoder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/encoder.py b/ipalib/encoder.py
index 2c5cebd6f..9d9d735a4 100644
--- a/ipalib/encoder.py
+++ b/ipalib/encoder.py
@@ -127,7 +127,7 @@ class Encoder(object):
var.decode(self.encoder_settings.decode_from)
)
elif isinstance(var, (bool, float, int, long)):
- return self.encoder_settings.decode_postprocessor(unicode(var))
+ return var
elif isinstance(var, list):
return [self.decode(m) for m in var]
elif isinstance(var, tuple):