[Twisted-Python] newbie -- trying to do async ldap operations
Allan Streib
astreib at indiana.edu
Tue Apr 22 21:30:38 MDT 2003
On Tue, 22 Apr 2003, Christopher Armstrong wrote:
> Eek, polling is terrible. You should check out Tv's Ldaptor for Twisted:
> http://twistedmatrix.com/users/tv/ldaptor/
> It's a natively-Twisted LDAP client library.
I saw that and downloaded the latest .tar.gz, but it was not immediately
obvious how it worked. There seemed to be no documentation -- did I miss
it? I'll peruse through the code a bit more; I'm all for not reinventing
the wheel, but on the other hand I'm very happy with the python-ldap
wrappers for the OpenLDAP API -- they've worked flawlessly for me so far.
> Also (it's moot if you'll use ldaptor, which I recommend, but..),
> returning the message ID as the result of the Deferred, and requiring
> the caller to poll, is a bad idea. You would do the polling yourself
> (every iteration of the mainloop, with a reactor.callLater(0, pollIt) or
> somesuch), and once the result is available, trigger the Deferred with
> it.
Yes, that's what I was trying to say. I probably did not say it well.
Thanks.
Allan
--
"If you understand what you're doing, you're not learning anything."
-- Anonymous
More information about the Twisted-Python
mailing list