From ad54fc33994c871eb72471a6bb19edacdc830343 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Mon, 15 Jun 2009 15:50:50 +0200 Subject: 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). --- ipalib/encoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/encoder.py') diff --git a/ipalib/encoder.py b/ipalib/encoder.py index 2c5cebd6..9d9d735a 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): -- cgit