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).
This commit is contained in:
Pavel Zuna authored and Rob Crittenden committed 2009-06-15 11:18:55 -04:00
1 parent 473e03d2f7
commit ad54fc3399
2 files changed
+30 -15

No files matched your search

+1 -1
View File
@@ -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):