search: Move asynchronous result handling inside search()
authorW. Trevor King <wking@tremily.us>
Sun, 20 Jan 2013 13:22:38 +0000 (08:22 -0500)
committerW. Trevor King <wking@tremily.us>
Sun, 20 Jan 2013 18:05:18 +0000 (13:05 -0500)
commita315fb1c4107d736940fc22f0b0927294d6aa7e4
treee395625ad9df40b1b5da633b84236c11381a195d
parent40928081cf585958622e17c023c0d221706b5a22
search: Move asynchronous result handling inside search()

The result of search() should be an iterable returning entries.  If we
want to use the asynchronous connection.search() and
connection.result(), that's fine, but we should handle the result
unpacking inside search().

One benefit to Wade's new generator approach is that we can start
formatting early entries while we wait for later entries to arrive.
mutt-ldap.py