Re: [Twisted-Python] Global reactor unit tests in the Twisted test suite

2011-11-01 Thread Anton Gyllenberg
On Tue, Nov 1, 2011 at 20:48, Glyph wrote: > On Nov 1, 2011, at 12:14 PM, Phil Mayers wrote: >> I find the "pass reactor as 1st argument to everything" API pattern >> messy. I'm sure there's a good reason. What is it? > > This pattern is a solution to the problem, but I agree that it is possibly

Re: [Twisted-Python] twisted.cred implementation for LDAP, anyone?

2011-06-27 Thread Anton Gyllenberg
On Thu, Jun 23, 2011 at 8:01 PM, Glyph Lefkowitz wrote: > On Jun 22, 2011, at 10:04 AM, Anton Gyllenberg wrote: >> The Ldaptor license is LGPL and I think it has always been LGPL. I'm >> not sure, as it was well before my time, but I believe early Ldaptor >> code w

Re: [Twisted-Python] twisted.cred implementation for LDAP, anyone?

2011-06-22 Thread Anton Gyllenberg
On Fri, Jun 17, 2011 at 8:55 PM, L. Daniel Burr wrote: > As an aside, I recall that ldaptor never could become part of twisted, due > to its licensing.  I didn't see any license information in the new repo; I > assume the code is still GPL v2? The Ldaptor license is LGPL and I think it has always

Re: [Twisted-Python] Specifying the local port for a twisted.names DNS query or resolver

2011-06-14 Thread Anton Gyllenberg
On Tue, Jun 14, 2011 at 9:01 PM, wrote: > We'd be happy to have such a feature officially supported.  Would you > like to work on a patch that adds a tested, documented hook for > selecting the source port? Perhaps I could work on such a patch. I would be thankful for any tips on where to start

[Twisted-Python] Specifying the local port for a twisted.names DNS query or resolver

2011-06-14 Thread Anton Gyllenberg
I have external requirements that force me to issue DNS queries from a specific local port range. I'm looking for a way to use the twisted.names resolver but I need to specify a local port for a query or set the local port range for all queries. I appreciate that the local port randomization is the

Re: [Twisted-Python] LDAP recommendation

2011-02-23 Thread Anton Gyllenberg
On Wed, Feb 23, 2011 at 8:22 PM, Brent McConnell wrote: > I'm working on a web application that uses Cyclone (Twisted port or Tornado) > and wanted > to know if anyone had any recommendations for integration with LDAP.  I need > to do basic > authentication as well as add and modify users and gr

[Twisted-Python] Ldaptor: [PATCH] Extend test driver send_multiResponse() to return deferred and throw errors

2010-09-02 Thread Anton Gyllenberg
The deferred returned by the LDAP client send_multiResponse() method was previously unused in all code covered by tests, and so the replacement method in the test driver just returned None. The deferred is now used in search() and this change makes the test driver also return a deferred instead of

Re: [Twisted-Python] Ldaptor: [PATCH] Reroute errback to deferred returned by search()

2010-09-01 Thread Anton Gyllenberg
On Wed, Sep 1, 2010 at 5:05 PM, Anton Gyllenberg wrote: > On Wed, Sep 1, 2010 at 4:17 PM, Itamar Turner-Trauring > wrote: >> On Wed, 2010-09-01 at 14:52 +0300, Anton Gyllenberg wrote: >> >>> Any comments and suggestions welcome! >> >> Unit tests are always

Re: [Twisted-Python] Ldaptor: [PATCH] Reroute errback to deferred returned by search()

2010-09-01 Thread Anton Gyllenberg
On Wed, Sep 1, 2010 at 4:17 PM, Itamar Turner-Trauring wrote: > On Wed, 2010-09-01 at 14:52 +0300, Anton Gyllenberg wrote: > >> Any comments and suggestions welcome! > > Unit tests are always a good idea :) That is so true. And if not writing new ones, then at least running exi

Re: [Twisted-Python] Ldaptor status and updates

2010-09-01 Thread Anton Gyllenberg
> I do the primary work on the ldaptor Debian package these days. Tommy did not > release a new version for years but has the mentioned git repository. The > Debian svn repository at > svn://svn.debian.org/python-modules/packages/ldaptor/trunk/ contains a series > of patches in the debian/patches d

[Twisted-Python] Ldaptor: [PATCH] Reroute errback to deferred returned by search()

2010-09-01 Thread Anton Gyllenberg
The LDAPEntryWithClient.search() method used to send the LDAP request with a call like self.client.send_multiResponse(... ) send_multiResponse() returns a deferred that was just discarded. If the operation causes an error then the errback fired on the discarded deferred will remain unhandle

[Twisted-Python] Ldaptor status and updates

2010-09-01 Thread Anton Gyllenberg
I want to use the Ldaptor LDAP client for a project. Does anybody know whether and how Ldaptor is currently maintained and what the best upstream source is? I need to make some changes and wonder what to base the work on and where to discuss and publish changes. Is it OK to discuss Ldaptor on this