From: David L. <le...@cs...> - 2000-02-29 00:42:17
|
On Mon, 28 Feb 2000, Michael Ströder wrote: > I would like to specify the maximum number of hits returned by a > search call. Is this possible with the _ldap module? I could not > find something in the docs. hmm.. i don't know if the LDAP protocol allows limiting the server from finding >n results, but you could pull results out one at a time by using the asynchronous calls l = _ldap.open(...) id = l.search(...blah..blah..) for num in range(10): res = l.result(id, 0) print "Got one result", `res` but i'm a bit rusty on this. -- David Leonard Dav...@cs... Dept of Comp. Sci. and Elec. Engg _ Room:78-624 Ph:+61 7 336 52447 The University of Queensland |+| http://www.csee.uq.edu.au/~leonard/ QLD 4072 AUSTRALIA ~` '~ E2A24DC6446E5779D7AFC41AA04E6401 The Stick: Second most useful thing ever. -- DNA |